File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -34,15 +34,19 @@ jobs:
3434 - name : Install Rust
3535 uses : actions-rust-lang/setup-rust-toolchain@v1
3636
37+ - name : Install Rust targets for macOS
38+ if : matrix.os == 'macos-latest'
39+ run : |
40+ rustup target add x86_64-apple-darwin
41+ rustup target add aarch64-apple-darwin
42+
3743 - name : Build wheels
3844 uses : pypa/cibuildwheel@v2.22
3945 env :
4046 CIBW_SKIP : " pp* *-musllinux_*" # Skip PyPy and musl builds
4147 CIBW_ARCHS_MACOS : " x86_64 arm64" # Build for Intel and Apple Silicon
4248 CIBW_ARCHS_WINDOWS : " AMD64"
4349 CIBW_ARCHS_LINUX : " x86_64"
44- CIBW_ENVIRONMENT_MACOS : " CARGO_BUILD_TARGET='${{ matrix.os == 'macos-latest' && 'universal2-apple-darwin' || '' }}'"
45- CIBW_BEFORE_BUILD_MACOS : " rustup target add x86_64-apple-darwin aarch64-apple-darwin"
4650
4751 - name : Build source distribution (Linux only)
4852 if : matrix.os == 'ubuntu-latest'
You can’t perform that action at this time.
0 commit comments