Skip to content

Commit 156ace2

Browse files
committed
fix(ci): export cargo path for macos builds
1 parent 3a32964 commit 156ace2

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ jobs:
2424
if: runner.os != 'Linux'
2525
run: |
2626
rustup update stable
27+
rustup target add aarch64-apple-darwin x86_64-apple-darwin
28+
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
2729
2830
- name: Build wheels
2931
uses: pypa/cibuildwheel@v2.16.5
@@ -39,6 +41,7 @@ jobs:
3941
# Linux: Install Rust in the manylinux/musllinux container
4042
CIBW_BEFORE_ALL_LINUX: "curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain stable --profile minimal"
4143
CIBW_ENVIRONMENT_LINUX: 'PATH="$PATH:$HOME/.cargo/bin"'
44+
CIBW_ENVIRONMENT_MACOS: 'PATH="$PATH:$HOME/.cargo/bin"'
4245

4346
# Build backend verification
4447
CIBW_BUILD_FRONTEND: build

0 commit comments

Comments
 (0)