From f20a0e2a44c3c1a556168b4213c1e13c9996963f Mon Sep 17 00:00:00 2001 From: Achille Roussel Date: Tue, 13 Feb 2024 00:17:52 -0800 Subject: [PATCH] parallelize the release steps Signed-off-by: Achille Roussel --- .github/workflows/pypi.yml | 36 ++++++++++++++++++++++++++++++++---- 1 file changed, 32 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml index 87745afe..2a72c9cf 100644 --- a/.github/workflows/pypi.yml +++ b/.github/workflows/pypi.yml @@ -28,26 +28,53 @@ jobs: path: dist/*.tar.gz build: - name: build wheels on ${{ matrix.os }} + name: build ${{ matrix.build }} wheels on ${{ matrix.os }} runs-on: ${{ matrix.os }} permissions: contents: read strategy: matrix: + build: + - cp311 + - cp312 os: - - ubuntu-latest - windows-latest + - ubuntu-latest - macos-13 - macos-14 steps: - uses: actions/checkout@v4 + - uses: pypa/cibuildwheel@v2.16.5 + env: + CIBW_BUILD: ${{ matrix.build }}-* + - uses: actions/upload-artifact@v4 + with: + name: cibw-wheels-${{ matrix.os }} + path: wheelhouse/*.whl + + build-linux-qemu: + name: build ${{ matrix.build }} wheels on qemu for linux/${{ matrix.arch }} + runs-on: ubuntu-latest + permissions: + contents: read + strategy: + matrix: + arch: + - aarch64 + - ppc64le + - s390x + build: + - cp311 + - cp312 + steps: + - uses: actions/checkout@v4 - uses: docker/setup-qemu-action@v3 - if: ${{ runner.os == 'Linux' }} with: platforms: all - uses: pypa/cibuildwheel@v2.16.5 env: - CIBW_ARCHS_LINUX: auto aarch64 ppc64le s390x + CIBW_BUILD: ${{ matrix.build }}-* + CIBW_ARCHS: ${{ matrix.arch }} - uses: actions/upload-artifact@v4 with: name: cibw-wheels-${{ matrix.os }} @@ -57,6 +84,7 @@ jobs: needs: - archive - build + - build-linux-qemu runs-on: ubuntu-latest environment: name: pypi