Skip to content

Commit bb5b840

Browse files
committed
fix(ci): split rust install steps for windows (powershell) and macos (bash)
1 parent bb79738 commit bb5b840

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,22 @@ jobs:
1919
steps:
2020
- uses: actions/checkout@v4
2121

22-
# Host Rust installation (for Windows/macOS)
23-
- name: Install Rust
24-
if: runner.os != 'Linux'
22+
# Host Rust installation (macOS) - Robust explicit install for cross-compilation
23+
- name: Install Rust (macOS)
24+
if: runner.os == 'macOS'
2525
run: |
2626
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain stable --profile minimal
2727
source $HOME/.cargo/env
2828
rustup target add aarch64-apple-darwin x86_64-apple-darwin
2929
rustup show
3030
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
3131
32+
# Host Rust installation (Windows) - Simple update
33+
- name: Install Rust (Windows)
34+
if: runner.os == 'Windows'
35+
run: |
36+
rustup update stable
37+
3238
- name: Build wheels
3339
uses: pypa/cibuildwheel@v2.16.5
3440
env:

0 commit comments

Comments
 (0)