Skip to content

Commit 651a7c5

Browse files
committed
fix macOS release build by installing Rust toolchain
1 parent 04b5f8d commit 651a7c5

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)