Skip to content

Commit

Permalink
more actions fiddling
Browse files Browse the repository at this point in the history
  • Loading branch information
cjw85 committed Aug 15, 2024
1 parent 9189e59 commit 650c588
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,30 @@ on: [push, pull_request]
jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
runs-on: ${{ matrix.buildplat[0] }}
strategy:
matrix:
# macos-13 is an intel runner, macos-14 is apple silicon
os: [ubuntu-latest, macos-13, macos-14]
buildplat:
# doing as cibuildwheel docs says leads to frankenstein arm builds on macos
# so lets be more explicit
- [ubuntu-latest, manylinux_x86_64, auto]
# - [ubuntu-latest, manylinux_aarch64, auto] # non-free on github
- [macos-latest, macosx_x86_64, x86_64]
- [macos-latest, macosx_arm64, arm64]
python: ["cp38", "cp39", "cp310", "cp11", "cp12"]

steps:
- uses: actions/checkout@v4

- name: Build wheels
uses: pypa/cibuildwheel@v2.20.0
env:
CIBW_BUILD: "cp38-* cp39-* cp310-* cp11-* cp12-*"
CIBW_ARCHS: ${{ matrix.buildplat[2] }}
CIBW_BUILD: ${{ matrix.python }}-${{ matrix.buildplat[1] }}

- uses: actions/upload-artifact@v4
with:
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
name: cibw-wheels-${{ matrix.python }}-${{ matrix.buildplat[1] }}
path: ./wheelhouse/*.whl


Expand Down

0 comments on commit 650c588

Please sign in to comment.