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 507f9c4
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/publish-wheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,18 +39,16 @@ 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'
uses: PyO3/maturin-action@v1
with:
args: --release --universal2 --out dist --interpreter python${{ matrix.python-version }}
- name: Upload wheels
uses: actions/upload-artifact@v2
with:
Expand Down

0 comments on commit 507f9c4

Please sign in to comment.