From 586fb91a1ce1c4dcdfc9bd929be12ac44210b2b7 Mon Sep 17 00:00:00 2001 From: Pierre-Antoine Bannier Date: Fri, 10 Apr 2026 10:56:58 +0200 Subject: [PATCH] ci: disable GGML_NATIVE for cross-compiled darwin x86_64 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Building on macos-latest (arm64) with CMAKE_OSX_ARCHITECTURES=x86_64 causes ggml's native arch detection to pass -march=native with the host CPU (apple-m3), which Apple clang rejects for an x86_64 target. Set GGML_NATIVE=OFF so ggml emits a generic x86_64 build — also more appropriate for a release artifact than host-tuned codegen. Co-Authored-By: Claude Opus 4.6 (1M context) --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 650cd48..efd8560 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,7 +23,7 @@ jobs: - name: macOS x86_64 os: macos-latest artifact: sam3-darwin-x86_64 - cmake_args: "-DGGML_METAL=OFF -DSAM3_METAL=OFF -DBUILD_SHARED_LIBS=OFF -DCMAKE_OSX_ARCHITECTURES=x86_64" + cmake_args: "-DGGML_METAL=OFF -DSAM3_METAL=OFF -DBUILD_SHARED_LIBS=OFF -DCMAKE_OSX_ARCHITECTURES=x86_64 -DGGML_NATIVE=OFF" build_args: "" ext: tar.gz