Skip to content

Commit

Permalink
Build wheels of macos in CI job
Browse files Browse the repository at this point in the history
  • Loading branch information
PucklaJ committed Feb 22, 2024
1 parent 82206c1 commit efe348f
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,35 @@ jobs:
if-no-files-found: error
overwrite: true
compression-level: 0
build-macos-wheels:
name: ${{ matrix.os }}-${{ matrix.arch }}-python${{ matrix.pyver }}
runs-on: ${{ matrix.os }}-latest
strategy:
fail-fast: false
matrix:
os: [macos]
arch: [x86_64]
pyver: ['3.11']
env:
abi: ${{ matrix.pyver == '3.11' && 'cp311-*' || matrix.pyver }}

steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: pypa/[email protected]
env:
CIBW_BUILD: ${{ env.abi }}
CIBW_ARCHS: ${{ matrix.arch }}
with:
output-dir: wheelhouse
- uses: actions/upload-artifact@v4
with:
name: ${{ matrix.os }}-${{ matrix.arch }}-python${{ matrix.pyver }}-wheel
path: ${{ github.workspace }}/wheelhouse/*.whl
if-no-files-found: error
overwrite: true
compression-level: 0


test-packages-windows:
Expand Down Expand Up @@ -102,3 +131,23 @@ jobs:
name: linux-${{ matrix.arch }}-${{ env.abi }}-wheel
- run: pip install *.whl
- run: python test.py
test-packages-macos:
runs-on: macos-latest
needs: [build-macos-wheels]
strategy:
fail-fast: false
matrix:
arch: [x86_64]
pyver: ['3.11']

steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.pyver }}
- uses: actions/download-artifact@v4
with:
merge-multiple: true
name: macos-${{ matrix.arch }}-${{ matrix.pyver }}-wheel
- run: pip install *.whl
- run: python test.py

0 comments on commit efe348f

Please sign in to comment.