Skip to content

Commit

Permalink
Merge pull request #134 from marcelm/ci
Browse files Browse the repository at this point in the history
Build macOS arm64 wheels
  • Loading branch information
marcelm committed Apr 24, 2024
2 parents 94e09d7 + 1034dde commit 5ae6b0a
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
os: [ubuntu-latest]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
include:
- os: macos-latest
- os: macos-13
python-version: "3.10"
- os: macos-14
python-version: "3.10"
Expand All @@ -71,43 +71,47 @@ jobs:
- name: Test
run: tox -e py
- name: Upload coverage report
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}

wheels:
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
needs: [lint, test]
timeout-minutes: 15
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
os: [ubuntu-latest, windows-latest, macos-13, macos-14]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # required for setuptools_scm
- name: Build wheels
uses: pypa/cibuildwheel@v2.16.2
uses: pypa/cibuildwheel@v2.17.0
env:
CIBW_BUILD: "cp*-manylinux_x86_64 cp3*-win_amd64 cp3*-macosx_x86_64"
CIBW_BUILD: "cp*-manylinux_x86_64 cp3*-win_amd64 cp3*-macosx_x86_64 cp3*-macosx_arm64"
CIBW_SKIP: "cp37-*"
CIBW_TEST_SKIP: "cp38-macosx_*:arm64"
- uses: actions/upload-artifact@v4
with:
name: wheels
name: wheels-${{ matrix.os }}
path: wheelhouse/*.whl

publish:
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
needs: [build, wheels]
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: sdist
path: dist/
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: wheels
pattern: wheels-*
path: dist/
merge-multiple: true
- name: Publish to PyPI
uses: pypa/[email protected]
with:
Expand Down

0 comments on commit 5ae6b0a

Please sign in to comment.