Skip to content

Commit

Permalink
More aggressively parallelize wheel builds
Browse files Browse the repository at this point in the history
  • Loading branch information
oir committed Dec 17, 2023
1 parent 2e02474 commit 3eaf0dc
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions .github/workflows/build-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,24 @@ on:
- published
jobs:
build-wheels:
name: Build py${{ matrix.version }} wheels on ${{ matrix.os }}
name: Build py${{ matrix.version }} wheels for ${{ matrix.platform[1] }} ${{ matrix.platform[2] }}
timeout-minutes: 60
runs-on: ${{ matrix.os }}
runs-on: ${{ matrix.platform[0] }}
strategy:
matrix:
os: [ubuntu-20.04, macos-11]
platform:
- [ubuntu-20.04, manylinux, x86_64]
- [ubuntu-20.04, manylinux, i686]
- [ubuntu-20.04, manylinux, aarch64]
- [ubuntu-20.04, manylinux, ppc64le]
- [ubuntu-20.04, manylinux, s390x]
- [ubuntu-20.04, musllinux, x86_64]
- [ubuntu-20.04, musllinux, i686]
- [ubuntu-20.04, musllinux, aarch64]
- [ubuntu-20.04, musllinux, ppc64le]
- [ubuntu-20.04, musllinux, s390x]
- [macos-11, macosx, x86_64]
- [macos-11, macosx, arm64]
version: [39, 310, 311, 312]
steps:
- uses: actions/checkout@v4
Expand All @@ -29,9 +41,8 @@ jobs:
- name: Build wheels
uses: pypa/cibuildwheel@v2.16.2
env:
CIBW_BUILD: "cp${{ matrix.version }}-*"
CIBW_ARCHS_LINUX: auto aarch64 ppc64le s390x
CIBW_ARCHS_MACOS: x86_64 arm64
CIBW_BUILD: "cp${{ matrix.version }}-${{ matrix.platform[1] }}*"
CIBW_ARCHS: ${{ matrix.platform[2] }}
- uses: actions/upload-artifact@v3
with:
path: ./wheelhouse/*.whl
Expand Down

0 comments on commit 3eaf0dc

Please sign in to comment.