Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

fix(ci): try mcpu=apple-m1 for macOS aarch64 to avoid i8mm

Louis Beaumonte91c0e19e5b6
diff --git a/.github/workflows/release-cli.yml b/.github/workflows/release-cli.yml
index 2b966c7ce..12d2c3f4c 100644
--- a/.github/workflows/release-cli.yml
+++ b/.github/workflows/release-cli.yml
@@ -73,9 +73,10 @@ jobs:
export PKG_CONFIG_PATH="/usr/local/opt/ffmpeg/lib/pkgconfig:$PKG_CONFIG_PATH"
export PKG_CONFIG_ALLOW_CROSS=1
export RUSTFLAGS="-C link-arg=-Wl,-rpath,@executable_path/../lib -C link-arg=-Wl,-rpath,@loader_path/../lib"
- # For aarch64, set CMAKE args to disable i8mm which causes compilation issues
+ # For aarch64, disable i8mm to fix whisper-rs-sys compilation on GitHub runners
if [[ "${{ matrix.target }}" == "aarch64-apple-darwin" ]]; then
- export CMAKE_ARGS="-DGGML_NATIVE=OFF"
+ export CFLAGS="-mcpu=apple-m1"
+ export CXXFLAGS="-mcpu=apple-m1"
fi
cargo build --release --features metal --target ${{ matrix.target }}