From bb9f27f37e0bd18173fe00bc58c9e8f0efeaf5b5 Mon Sep 17 00:00:00 2001 From: Sam Valladares Date: Mon, 29 Jun 2026 15:59:46 -0500 Subject: [PATCH] ci: pin macOS runners to macos-14 (fix flaky clang_rt.osx linker failure) The rolling macos-latest image intermittently ships a broken compiler-rt path, causing 'ld: library clang_rt.osx not found' on the Rust link step of an otherwise-green commit (a README-only change failed CI this way). Pinning all five macOS jobs (CI test + CI release-build + Release) to macos-14 gives a stable Xcode/clang toolchain so the linker step is deterministic. Co-Authored-By: Claude Opus 4.8 (1M context) --- .github/workflows/ci.yml | 10 +++++++--- .github/workflows/release.yml | 4 ++-- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9af8c37..d7d2917 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,7 +17,11 @@ jobs: strategy: fail-fast: false matrix: - os: [macos-latest, ubuntu-latest] + # Pin macOS to macos-14 (Sonoma): the rolling `macos-latest` image + # intermittently ships a broken compiler-rt path ("ld: library + # 'clang_rt.osx' not found"), which fails the Rust link step on an + # otherwise-green commit. macos-14 has a stable Xcode/clang toolchain. + os: [macos-14, ubuntu-latest] steps: - uses: actions/checkout@v4 @@ -61,13 +65,13 @@ jobs: fail-fast: false matrix: include: - - os: macos-latest + - os: macos-14 target: aarch64-apple-darwin cargo_flags: "" # Intel Mac builds against a system ONNX Runtime via ort-dynamic # (ort-sys has no x86_64-apple-darwin prebuilts). Compile-only here; # runtime linking is a user concern documented in INSTALL-INTEL-MAC.md. - - os: macos-latest + - os: macos-14 target: x86_64-apple-darwin cargo_flags: "--no-default-features --features ort-dynamic,vector-search" - os: ubuntu-latest diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d789b12..3741d29 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -39,11 +39,11 @@ jobs: # consumers must `brew install onnxruntime` before running — see # INSTALL-INTEL-MAC.md bundled in the tarball. - target: x86_64-apple-darwin - os: macos-latest + os: macos-14 archive: tar.gz cargo_flags: "--no-default-features --features ort-dynamic,vector-search" - target: aarch64-apple-darwin - os: macos-latest + os: macos-14 archive: tar.gz cargo_flags: ""