Skip to content

Commit

Permalink
Parallelize wheel jobs and add ARM
Browse files Browse the repository at this point in the history
  • Loading branch information
Legrandin committed Jan 17, 2025
1 parent 23b7a8d commit de3f73e
Showing 1 changed file with 11 additions and 24 deletions.
35 changes: 11 additions & 24 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,8 @@ jobs:
path: ./dist/*.tar.gz

build_python3_wheels_linux_x86:
name: Build Python 3 wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
os: ubuntu-22.04
name: Build Python 3 wheels on Linux X86
os: ubuntu-22.04

if: github.actor == 'Legrandin'

Expand Down Expand Up @@ -67,11 +66,8 @@ jobs:
path: ./wheelhouse/*.whl

build_python3_wheels_windows:
name: Build Python 3 wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: windows-2019
name: Build Python 3 wheels on Windows
os: windows-2019

if: github.actor == 'Legrandin'

Expand All @@ -98,11 +94,8 @@ jobs:
path: ./wheelhouse/*.whl

build_python3_wheels_macos:
name: Build Python 3 wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: macos-13
name: Build Python 3 wheels on MacOS
os: macos-13

if: github.actor == 'Legrandin'

Expand Down Expand Up @@ -133,11 +126,8 @@ jobs:
path: ./wheelhouse/*.whl

build_python3_wheels_linux_arm:
name: Build Python 3 wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ubuntu-22.04-arm
name: Build Python 3 wheels on Linux ARM
os: ubuntu-22.04-arm

if: github.actor == 'Legrandin'

Expand All @@ -150,10 +140,8 @@ jobs:
# cibuildwheel will build wheel once and test it for each CPython version
# and for PyPy > 3.8.
CIBW_BUILD: "cp37-* cp38-* cp39-* cp310-* cp311-* cp312-* cp313-* pp39-* pp310-*"
CIBW_MANYLINUX_X86_64_IMAGE: "manylinux2014"
CIBW_MANYLINUX_I686_IMAGE: "manylinux2014"
CIBW_MANYLINUX_PYPY_X86_64_IMAGE: "manylinux2014"
CIBW_MANYLINUX_PYPY_I686_IMAGE: "manylinux2014"
CIBW_MANYLINUX_AARCH64_IMAGE: "manylinux2014"
CIBW_MANYLINUX_PYPY_AARCH64_IMAGE: "manylinux2014"
CIBW_FREE_THREADED_SUPPORT: "true"
CIBW_BEFORE_TEST_LINUX: "(ldd /bin/ls | grep -q musl && apk add gmp) || true"

Expand All @@ -166,8 +154,7 @@ jobs:
- name: Delete manylinux1 wheels
if: runner.os == 'Linux'
run: |
rm -f wheelhouse/*-manylinux1_i686.whl
rm -f wheelhouse/*-manylinux1_x86_64.whl
rm -f wheelhouse/*-manylinux1_aarch64.whl
- uses: actions/upload-artifact@v3
with:
Expand Down

0 comments on commit de3f73e

Please sign in to comment.