Commit c1a24047 for whisper.cpp
commit c1a24047871444999b79f5e8612828f45881ae12
Author: Daniel Bevenius <daniel.bevenius@gmail.com>
Date: Tue Nov 24 15:06:22 2026 +0100
ci : add check for SPIRV-HeadersConfig for gpu-vulkan (#4204)
This commit adds a check for the SPIRV-HeadersConfig.cmake at the non
standard path what LunarG macos vulkan uses, and sets
-DSPIRV-Headers_DIR as a CMAKE_EXTRA option. A similar check was added
in in llama.cpp (linked below)
This will hopefully fix the failing gpu-vulkan CI build.
Refs: https://github.com/ggml-org/whisper.cpp/actions/runs/45339327199/job/138258894751?pr=4203
Refs: https://github.com/ggml-org/llama.cpp/pull/22009
diff --git a/ci/run.sh b/ci/run.sh
index dca4476a..493db20e 100644
--- a/ci/run.sh
+++ b/ci/run.sh
@@ -106,6 +106,12 @@ if [ ! -z ${GG_BUILD_VULKAN} ]; then
# if on Mac, disable METAL
if [[ "$OSTYPE" == "darwin"* ]]; then
CMAKE_EXTRA="${CMAKE_EXTRA} -DGGML_METAL=OFF -DGGML_BLAS=OFF"
+
+ MACOS_RUNNER_CUSTOM_VULKAN_CMAKE_LOCATION="/usr/local/lib/cmake/vulkan"
+ MACOS_RUNNER_CUSTOM_SPIRV_HEADERS_LOCATION="${MACOS_RUNNER_CUSTOM_VULKAN_CMAKE_LOCATION}/SPIRV-Headers/SPIRV-HeadersConfig.cmake"
+ if [[ -f "${MACOS_RUNNER_CUSTOM_SPIRV_HEADERS_LOCATION}" || -h "${MACOS_RUNNER_CUSTOM_SPIRV_HEADERS_LOCATION}" ]]; then
+ CMAKE_EXTRA="${CMAKE_EXTRA} -DSPIRV-Headers_DIR=${MACOS_RUNNER_CUSTOM_VULKAN_CMAKE_LOCATION}/SPIRV-Headers"
+ fi
fi
fi