chore: split wheel builds to speed up releases (#341)
This commit is contained in:
19
.github/workflows/ci.yml
vendored
19
.github/workflows/ci.yml
vendored
@@ -109,6 +109,7 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest]
|
os: [ubuntu-latest]
|
||||||
|
musl: ["", "musllinux"]
|
||||||
arch:
|
arch:
|
||||||
- "x86_64"
|
- "x86_64"
|
||||||
- "aarch64"
|
- "aarch64"
|
||||||
@@ -121,7 +122,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Set up QEMU
|
- name: Set up QEMU
|
||||||
if: matrix.arch == 'aarch64'
|
if: matrix.arch == 'aarch64'
|
||||||
uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # v3.0.0
|
uses: docker/setup-qemu-action@v3
|
||||||
with:
|
with:
|
||||||
platforms: arm64
|
platforms: arm64
|
||||||
|
|
||||||
@@ -146,11 +147,23 @@ jobs:
|
|||||||
- name: Install cibuildwheel
|
- name: Install cibuildwheel
|
||||||
run: python -m pip install cibuildwheel==2.22.0
|
run: python -m pip install cibuildwheel==2.22.0
|
||||||
|
|
||||||
- name: Build wheels
|
- name: Build wheels (manylinux)
|
||||||
run: python -m cibuildwheel --output-dir wheelhouse
|
run: python -m cibuildwheel --output-dir wheelhouse
|
||||||
|
if: matrix.musl == ''
|
||||||
# to supply options, put them in 'env', like:
|
# to supply options, put them in 'env', like:
|
||||||
env:
|
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_BEFORE_ALL_LINUX: apt-get install -y gcc || yum install -y gcc || apk add gcc
|
||||||
CIBW_BUILD_VERBOSITY: 3
|
CIBW_BUILD_VERBOSITY: 3
|
||||||
REQUIRE_CYTHON: 1
|
REQUIRE_CYTHON: 1
|
||||||
|
|||||||
Reference in New Issue
Block a user