From: Niklas Wenzel Date: Tue, 4 Aug 2026 13:03:38 +0000 (+0200) Subject: ci: fix pre-built binaries no longer working on macOS 15 and below (#26375) X-Git-Tag: upstream/0.0.10438~170 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=6b5224cfccdb9caf4c0a0a87692fddad22c7e969;p=pkg%2Fggml%2Fsources%2Fllama.cpp ci: fix pre-built binaries no longer working on macOS 15 and below (#26375) * ci: fix pre-built binaries no longer working on macOS 15 and below * ci: add macOS deployment target to disabled KleidiAI build --- diff --git a/.github/workflows/build-apple.yml b/.github/workflows/build-apple.yml index 2b3d14d1f..75add9993 100644 --- a/.github/workflows/build-apple.yml +++ b/.github/workflows/build-apple.yml @@ -63,7 +63,8 @@ jobs: -DGGML_METAL_USE_BF16=ON \ -DGGML_METAL_EMBED_LIBRARY=OFF \ -DGGML_METAL_SHADER_DEBUG=ON \ - -DGGML_RPC=ON + -DGGML_RPC=ON \ + -DCMAKE_OSX_DEPLOYMENT_TARGET=13.3 time cmake --build build --config Release -j $(sysctl -n hw.logicalcpu) leaks -atExit -- ./build/bin/test-thread-safety -hf ggml-org/gemma-3-270m-qat-GGUF -ngl 99 -p "$(printf 'hello %.0s' {1..128})" -n 16 -c 512 -ub 32 -np 2 -t 2 -lv 1 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3460485af..7a69caaef 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -93,13 +93,13 @@ jobs: - build: 'arm64' arch: 'arm64' os: macos-26 - defines: "-DGGML_METAL_USE_BF16=ON -DGGML_METAL_EMBED_LIBRARY=ON" + defines: "-DGGML_METAL_USE_BF16=ON -DGGML_METAL_EMBED_LIBRARY=ON -DCMAKE_OSX_DEPLOYMENT_TARGET=13.3" # TODO: this build is disabled to save Github Actions resources (https://github.com/ggml-org/llama.cpp/pull/23780) # in order to enable it again, we have to provision dedicated runners to run it #- build: 'arm64-kleidiai' # arch: 'arm64' # os: macos-14 - # defines: "-DGGML_METAL_USE_BF16=ON -DGGML_METAL_EMBED_LIBRARY=ON -DGGML_CPU_KLEIDIAI=ON" + # defines: "-DGGML_METAL_USE_BF16=ON -DGGML_METAL_EMBED_LIBRARY=ON -DCMAKE_OSX_DEPLOYMENT_TARGET=13.3 -DGGML_CPU_KLEIDIAI=ON" - build: 'x64' arch: 'x64' os: macos-15-intel