Skip to content

Commit

Permalink
update dist workflow for macos
Browse files Browse the repository at this point in the history
  • Loading branch information
wbarnha committed Aug 11, 2022
1 parent cb668b3 commit c9da0ac
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion .github/workflows/dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,26 @@ on:
- 'master'

jobs:
build_wheels_macos:
name: 'Build wheels for macOS'
runs-on: macos-11

steps:
- uses: actions/checkout@v3

- name: Build wheels
uses: pypa/cibuildwheel@v2.8.1
env:
CIBW_ARCHS_MACOS: x86_64 arm64
CIBW_PLATFORM: macos
CIBW_BUILD: 'cp3*'
CIBW_BEFORE_BUILD: pip3 install Cython

- uses: actions/upload-artifact@v3
name: 'Upload build artifacts'
with:
path: ./wheelhouse/*.whl

build_sdist:
name: 'Build source distribution'
runs-on: 'ubuntu-latest'
Expand All @@ -33,7 +53,7 @@ jobs:

upload_pypi:
name: 'Upload packages'
needs: ['build_wheels', 'build_sdist']
needs: ['build_wheels_macos', 'build_sdist']
runs-on: 'ubuntu-latest'
if: github.event_name == 'release' && github.event.action == 'created'
steps:
Expand Down

0 comments on commit c9da0ac

Please sign in to comment.