Skip to content

Commit

Permalink
Fix universal macos publish
Browse files Browse the repository at this point in the history
  • Loading branch information
luciaquirke committed Sep 2, 2024
1 parent d52f311 commit f4a4087
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/publish-wheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,15 @@ jobs:
toolchain: stable
target: ${{ matrix.target }}
override: true
- name: Add macOS Rust targets
if: matrix.os == 'macos-latest'
run: |
rustup target add x86_64-apple-darwin aarch64-apple-darwin
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
target: ${{ matrix.target }}
args: --release --out dist --interpreter python${{ matrix.python-version }}
${{ matrix.os == 'macos-latest' && '--target universal2-apple-darwin' || '' }}
args: --release --out dist --interpreter python${{ matrix.python-version }} ${{ matrix.os == 'macos-latest' && '--target universal2-apple-darwin' || '' }}
manylinux: auto
- name: Build universal2 wheel for macOS
if: matrix.os == 'macos-latest' && matrix.python-version == '3.10'
Expand Down

0 comments on commit f4a4087

Please sign in to comment.