From 6c09a1929c745b46c235ffb59c80b7323ef9d813 Mon Sep 17 00:00:00 2001 From: stuchapin909 <178119976+stuchapin909@users.noreply.github.com> Date: Mon, 26 Oct 2026 18:57:30 +0100 Subject: [PATCH] CI: build the Metal engine on macos-26 (#3870, #3824) metal/src/mtl_rt.mm names MTLGPUFamilyMetal4 (macOS 26 SDK) and MTLCompileOptions.mathMode (macOS 15 SDK) behind @available, a run-time check; the names must still exist in the SDK the engine is compiled against, so the metal-link job failed on the macOS 14 SDK on every pull request that touched src/, include/ or metal/. The job now runs on macos-26 (the runner-images repository lists a macos-26 image). Ported from PR #3870 by stuchapin909. A GitHub Actions run cannot be made here: the author ran this workflow on his fork; the first run after the merge proves it. #3824 changes the same line with macos-15 and an Xcode 26.0.1 path pin, and is not taken. --- .github/workflows/metal-build.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/metal-build.yml b/.github/workflows/metal-build.yml index 7a69696f..a4f7d997 100644 --- a/.github/workflows/metal-build.yml +++ b/.github/workflows/metal-build.yml @@ -20,7 +20,9 @@ permissions: jobs: metal-link: - runs-on: macos-14 + # the macOS 26 SDK: metal/src/mtl_rt.mm names MTLGPUFamilyMetal4 (and MTLCompileOptions.mathMode, macOS 15) behind @available, + # which is a run-time check; the names must still be in the SDK the engine is compiled against + runs-on: macos-26 timeout-minutes: 45 env: # setup.py's LLAMA_CPP_COMMIT and metal/setup_mac.py's metal-cpp pin