Skip to content

Commit

Permalink
restore building of universal mac wheel for m1/m2 compat (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
jkeifer authored Oct 19, 2023
1 parent b920ead commit c49b297
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,17 @@ jobs:
with:
targets: aarch64-apple-darwin
- name: Build wheels - x86_64
if: ${{ matrix.python-version == '3.7' }}
uses: PyO3/maturin-action@v1
with:
target: x86_64
args: -i python --release --out dist --sdist
- name: Install built wheel - x86_64
- name: Build wheels - universal2
if: ${{ matrix.python-version != '3.7' }}
uses: PyO3/maturin-action@v1
with:
args: -i python --release --out dist --target universal2-apple-darwin
- name: Install built wheel
run: |
pip install gilknocker --no-index --find-links dist --force-reinstall
- name: Python UnitTest
Expand All @@ -43,7 +49,7 @@ jobs:
uses: actions/upload-artifact@v3
with:
name: wheels
path: dist
path: dist

windows:
runs-on: windows-latest
Expand Down Expand Up @@ -83,7 +89,7 @@ jobs:
with:
name: wheels
path: dist

linux:
runs-on: ubuntu-latest
strategy:
Expand Down

0 comments on commit c49b297

Please sign in to comment.