Skip to content

Commit de3f73e

Browse files
committed
Parallelize wheel jobs and add ARM
1 parent 23b7a8d commit de3f73e

File tree

1 file changed

+11
-24
lines changed

1 file changed

+11
-24
lines changed

.github/workflows/wheels.yml

Lines changed: 11 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,8 @@ jobs:
2828
path: ./dist/*.tar.gz
2929

3030
build_python3_wheels_linux_x86:
31-
name: Build Python 3 wheels on ${{ matrix.os }}
32-
runs-on: ${{ matrix.os }}
33-
os: ubuntu-22.04
31+
name: Build Python 3 wheels on Linux X86
32+
os: ubuntu-22.04
3433

3534
if: github.actor == 'Legrandin'
3635

@@ -67,11 +66,8 @@ jobs:
6766
path: ./wheelhouse/*.whl
6867

6968
build_python3_wheels_windows:
70-
name: Build Python 3 wheels on ${{ matrix.os }}
71-
runs-on: ${{ matrix.os }}
72-
strategy:
73-
matrix:
74-
os: windows-2019
69+
name: Build Python 3 wheels on Windows
70+
os: windows-2019
7571

7672
if: github.actor == 'Legrandin'
7773

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

10096
build_python3_wheels_macos:
101-
name: Build Python 3 wheels on ${{ matrix.os }}
102-
runs-on: ${{ matrix.os }}
103-
strategy:
104-
matrix:
105-
os: macos-13
97+
name: Build Python 3 wheels on MacOS
98+
os: macos-13
10699

107100
if: github.actor == 'Legrandin'
108101

@@ -133,11 +126,8 @@ jobs:
133126
path: ./wheelhouse/*.whl
134127

135128
build_python3_wheels_linux_arm:
136-
name: Build Python 3 wheels on ${{ matrix.os }}
137-
runs-on: ${{ matrix.os }}
138-
strategy:
139-
matrix:
140-
os: ubuntu-22.04-arm
129+
name: Build Python 3 wheels on Linux ARM
130+
os: ubuntu-22.04-arm
141131

142132
if: github.actor == 'Legrandin'
143133

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

@@ -166,8 +154,7 @@ jobs:
166154
- name: Delete manylinux1 wheels
167155
if: runner.os == 'Linux'
168156
run: |
169-
rm -f wheelhouse/*-manylinux1_i686.whl
170-
rm -f wheelhouse/*-manylinux1_x86_64.whl
157+
rm -f wheelhouse/*-manylinux1_aarch64.whl
171158
172159
- uses: actions/upload-artifact@v3
173160
with:

0 commit comments

Comments
 (0)