Skip to content

Commit 5a4f545

Browse files
juntaoclaude
andcommitted
Switch macOS CI runners from macos-15 to macos-latest
macOS 15 SDK compiles MLX C++ with @available() checks that reference ___isPlatformVersionAtLeast from the compiler runtime, causing linker errors. macOS 14 (macos-latest) does not have this issue. This matches qwen3_asr_rs which also uses macos-latest. Signed-off-by: Michael Yuan <michael@secondstate.io> Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Signed-off-by: Michael Yuan <michael@secondstate.io>
1 parent 7e79e18 commit 5a4f545

File tree

4 files changed

+3
-12
lines changed

4 files changed

+3
-12
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ jobs:
210210
# ───────────────────────────────────────────────────────────────────────────
211211
macos-mlx:
212212
name: macOS Apple Silicon (mlx)
213-
runs-on: macos-15 # macOS 15 on Apple Silicon (M-series)
213+
runs-on: macos-latest # macOS 14+ on Apple Silicon (M-series)
214214

215215
steps:
216216
- uses: actions/checkout@v4

.github/workflows/integration-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ jobs:
301301
# ─────────────────────────────────────────────────────────────────────────────
302302
test-macos-mlx:
303303
name: Integration — macOS Apple Silicon (mlx)
304-
runs-on: macos-15
304+
runs-on: macos-latest
305305
if: |
306306
always() && (
307307
github.event_name == 'schedule' ||

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ jobs:
9595
https://github.com/second-state/libtorch-releases/releases/download/v2.7.1/libtorch-cxx11-abi-aarch64-cuda12.6-2.7.1.tar.gz
9696
9797
# ── macOS Apple Silicon — MLX backend ────────────────────────────
98-
- os: macos-15
98+
- os: macos-latest
9999
name: macOS Apple Silicon
100100
backend: mlx
101101
asset-name: transcribe-macos-aarch64

build.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -88,15 +88,6 @@ fn build_mlx() {
8888
// C++ standard library (MLX is C++)
8989
println!("cargo:rustc-link-lib=c++");
9090

91-
// Set the minimum macOS deployment target for the linker.
92-
// MLX C++ code uses @available() checks that reference ___isPlatformVersionAtLeast
93-
// from the compiler runtime. The Rust linker must target the same (or higher)
94-
// macOS version so the runtime is linked.
95-
println!(
96-
"cargo:rustc-link-arg=-mmacosx-version-min={}",
97-
deployment_target
98-
);
99-
10091
// Rerun if mlx-c sources change
10192
println!("cargo:rerun-if-changed=mlx-c/CMakeLists.txt");
10293
println!("cargo:rerun-if-changed=build.rs");

0 commit comments

Comments
 (0)