Skip to content

Commit

Permalink
gh-46: build wheels for more platforms (#47)
Browse files Browse the repository at this point in the history
Add macOS builds for `x86_64` and `arm64`, plus a number of Linux
systems.

Closes: #46
  • Loading branch information
ntessore committed Apr 15, 2024
1 parent 48468ac commit 842ef94
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions .github/workflows/cibuildwheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,24 +14,31 @@ on:

jobs:
build_wheels:
name: Build wheels on ${{ matrix.runs-on }}
runs-on: ${{ matrix.runs-on }}
name: Build wheels on ${{ matrix.os }}
os: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
runs-on: [ubuntu-latest, macos-latest, windows-latest]
os: [ubuntu-latest, windows-latest, macos-13, macos-14]

steps:
- uses: actions/checkout@v4

- name: Set up QEMU
if: runner.os == 'Linux'
uses: docker/setup-qemu-action@v3
with:
platforms: all

- name: Build wheels
uses: pypa/[email protected]
env:
CIBW_BUILD: 'cp*'
CIBW_ARCHS_LINUX: auto aarch64 ppc64le s390x

- uses: actions/upload-artifact@v4
with:
name: dist-${{ matrix.runs-on }}
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
path: ./wheelhouse/*.whl

build_sdist:
Expand All @@ -45,8 +52,8 @@ jobs:

- uses: actions/upload-artifact@v4
with:
name: dist-sdist
path: dist
name: cibw-sdist
path: dist/*.tar.gz

upload_pypi:
name: Upload to PyPI
Expand All @@ -58,8 +65,8 @@ jobs:
steps:
- uses: actions/download-artifact@v4
with:
pattern: dist-*
merge-multiple: true
pattern: cibw-*
path: dist
merge-multiple: true

- uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 842ef94

Please sign in to comment.