chore: split wheel builds to speed up releases (#341)
This commit is contained in:
parent
eda37061c4
commit
439b2da878
19
.github/workflows/ci.yml
vendored
19
.github/workflows/ci.yml
vendored
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user