From 439b2da8789d7e0ca0a70e4d4c074666248bd492 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Tue, 7 Jan 2025 09:49:14 -1000 Subject: [PATCH] chore: split wheel builds to speed up releases (#341) --- .github/workflows/ci.yml | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 78761e1..7317042 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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