Skip to content

Commit 191f8fd

Browse files
chandr-andrclaude
andcommitted
ci: fix macOS release build by installing Rust toolchain
The macOS runner images (now macos-15-arm64) no longer ship a Rust toolchain on PATH, so maturin-action failed with "Unable to locate executable file: rustc". Add an explicit dtolnay/rust-toolchain step with the matching apple-darwin target so the x86_64 cross-compile from the ARM runner also works. Also drop the unused OpenSSL setup: openssl is built with the "vendored" feature, so the stale OPENSSL_DIR and homebrew openssl steps had no effect. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 04b5f8d commit 191f8fd

1 file changed

Lines changed: 6 additions & 10 deletions

File tree

‎.github/workflows/release.yml‎

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -92,21 +92,17 @@ jobs:
9292
strategy:
9393
matrix:
9494
target: [x86_64, aarch64]
95-
env:
96-
OPENSSL_DIR: /opt/homebrew/Cellar/openssl@3/3.3.1
9795
steps:
9896
- uses: actions/checkout@v3
9997
- uses: actions/setup-python@v5
10098
with:
10199
python-version: '3.14'
102-
- name: Brew update
103-
run: brew update
104-
- name: brew upgrade
105-
run: brew upgrade
106-
- name: brew ssl
107-
run: brew info openssl
108-
- name: Install openssl deps
109-
run: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" && brew install openssl
100+
# The macOS runner images no longer ship a Rust toolchain on PATH,
101+
# so install it explicitly (including the cross-compilation target).
102+
- name: Setup Rust
103+
uses: dtolnay/rust-toolchain@stable
104+
with:
105+
targets: ${{ matrix.target }}-apple-darwin
110106

111107
- name: Build wheels
112108
uses: PyO3/maturin-action@v1

0 commit comments

Comments
 (0)