Skip to content

Commit ac4b893

Browse files
committed
Attempt #2
1 parent c701e6f commit ac4b893

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/publish-PyPI.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff 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'

0 commit comments

Comments
 (0)