Skip to content

Commit bb79738

Browse files
committed
fix(ci): force fresh rustup install on macos to ensure targets
1 parent 156ace2 commit bb79738

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,10 @@ jobs:
2323
- name: Install Rust
2424
if: runner.os != 'Linux'
2525
run: |
26-
rustup update stable
26+
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain stable --profile minimal
27+
source $HOME/.cargo/env
2728
rustup target add aarch64-apple-darwin x86_64-apple-darwin
29+
rustup show
2830
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
2931
3032
- name: Build wheels
@@ -41,7 +43,6 @@ jobs:
4143
# Linux: Install Rust in the manylinux/musllinux container
4244
CIBW_BEFORE_ALL_LINUX: "curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain stable --profile minimal"
4345
CIBW_ENVIRONMENT_LINUX: 'PATH="$PATH:$HOME/.cargo/bin"'
44-
CIBW_ENVIRONMENT_MACOS: 'PATH="$PATH:$HOME/.cargo/bin"'
4546

4647
# Build backend verification
4748
CIBW_BUILD_FRONTEND: build

0 commit comments

Comments
 (0)