Skip to content

Commit

Permalink
parallelize the release steps
Browse files Browse the repository at this point in the history
Signed-off-by: Achille Roussel <[email protected]>
  • Loading branch information
achille-roussel committed Feb 13, 2024
1 parent 9a5190b commit f20a0e2
Showing 1 changed file with 32 additions and 4 deletions.
36 changes: 32 additions & 4 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
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/[email protected]
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 }}
Expand All @@ -57,6 +84,7 @@ jobs:
needs:
- archive
- build
- build-linux-qemu
runs-on: ubuntu-latest
environment:
name: pypi
Expand Down

0 comments on commit f20a0e2

Please sign in to comment.