chore: split wheel builds to speed up releases (#341)

This commit is contained in:
J. Nick Koston 2025-01-07 09:49:14 -10:00 committed by GitHub
parent eda37061c4
commit 439b2da878
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -109,6 +109,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
musl: ["", "musllinux"]
arch:
- "x86_64"
- "aarch64"
@ -121,7 +122,7 @@ jobs:
- name: Set up QEMU
if: matrix.arch == 'aarch64'
uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # v3.0.0
uses: docker/setup-qemu-action@v3
with:
platforms: arm64
@ -146,11 +147,23 @@ jobs:
- name: Install cibuildwheel
run: python -m pip install cibuildwheel==2.22.0
- name: Build wheels
- name: Build wheels (manylinux)
run: python -m cibuildwheel --output-dir wheelhouse
if: matrix.musl == ''
# to supply options, put them in 'env', like:
env:
CIBW_SKIP: cp36-* cp37-* pp36-* pp37-*
CIBW_SKIP: "*musllinux*"
CIBW_BEFORE_ALL_LINUX: apt-get install -y gcc || yum install -y gcc || apk add gcc
CIBW_BUILD_VERBOSITY: 3
REQUIRE_CYTHON: 1
CIBW_ARCHS: ${{ matrix.arch }}
- name: Build wheels (musl)
run: python -m cibuildwheel --output-dir wheelhouse
if: matrix.musl == 'musllinux'
# to supply options, put them in 'env', like:
env:
CIBW_SKIP: "*manylinux*"
CIBW_BEFORE_ALL_LINUX: apt-get install -y gcc || yum install -y gcc || apk add gcc
CIBW_BUILD_VERBOSITY: 3
REQUIRE_CYTHON: 1