Skip to content

Commit 8292231

Browse files
authored
Update deploy.yml (#267)
Update to musllinux_1_2 and using ubuntu-24.04-arm runner for aarch64
1 parent be19d0f commit 8292231

File tree

1 file changed

+82
-12
lines changed

1 file changed

+82
-12
lines changed

.github/workflows/deploy.yml

Lines changed: 82 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
python-version: '3.13'
3434

3535
- name: Install cibuildwheel
36-
run: python -m pip install cibuildwheel==2.21.3
36+
run: python -m pip install cibuildwheel==2.22.0
3737

3838
- name: Build wheels
3939
run: python -m cibuildwheel --output-dir wheelhouse
@@ -64,7 +64,7 @@ jobs:
6464
python-version: '3.13'
6565

6666
- name: Install cibuildwheel
67-
run: python -m pip install cibuildwheel==2.21.3
67+
run: python -m pip install cibuildwheel==2.22.0
6868

6969
- name: Build wheels
7070
run: python -m cibuildwheel --output-dir wheelhouse
@@ -80,15 +80,14 @@ jobs:
8080
strategy:
8181
matrix:
8282
distro: [manylinux2014, manylinux_2_28]
83-
arch: [x86_64, aarch64, s390x]
83+
arch: [x86_64, s390x]
8484
include:
8585
- distro: manylinux2014
8686
arch: i686
8787

8888
env:
8989
CIBW_MANYLINUX_X86_64_IMAGE: ${{ matrix.distro }}
9090
CIBW_MANYLINUX_I686_IMAGE: ${{ matrix.distro }}
91-
CIBW_MANYLINUX_AARCH64_IMAGE: ${{ matrix.distro }}
9291
CIBW_MANYLINUX_S390X_IMAGE: ${{ matrix.distro }}
9392
CIBW_BUILD: cp3*-manylinux*
9493
CIBW_ARCHS: ${{matrix.arch}}
@@ -108,7 +107,46 @@ jobs:
108107
python-version: '3.13'
109108

110109
- name: Install cibuildwheel
111-
run: python -m pip install cibuildwheel==2.21.3
110+
run: python -m pip install cibuildwheel==2.22.0
111+
112+
- name: Build wheels
113+
run: python -m cibuildwheel --output-dir wheelhouse
114+
115+
- uses: actions/upload-artifact@v4
116+
with:
117+
name: artifact-${{ matrix.distro }}-${{matrix.arch}}
118+
path: ./wheelhouse/*.whl
119+
120+
build_wheels_manylinux_arm:
121+
name: Build wheels on ${{ matrix.distro }} for ${{ matrix.arch }}
122+
runs-on: ubuntu-24.04-arm
123+
strategy:
124+
matrix:
125+
distro: [manylinux2014, manylinux_2_28]
126+
arch: [aarch64]
127+
#include:
128+
# - distro: manylinux_2_31
129+
# arch: armv7l
130+
131+
132+
env:
133+
CIBW_MANYLINUX_AARCH64_IMAGE: ${{ matrix.distro }}
134+
CIBW_MANYLINUX_ARMV7L_IMAGE: ${{ matrix.distro }}
135+
CIBW_BUILD: cp3*-manylinux*
136+
CIBW_ARCHS: ${{matrix.arch}}
137+
138+
steps:
139+
- uses: actions/checkout@v4
140+
with:
141+
submodules: recursive
142+
143+
- uses: actions/setup-python@v5
144+
name: Install Python
145+
with:
146+
python-version: '3.13'
147+
148+
- name: Install cibuildwheel
149+
run: python -m pip install cibuildwheel==2.22.0
112150

113151
- name: Build wheels
114152
run: python -m cibuildwheel --output-dir wheelhouse
@@ -119,17 +157,16 @@ jobs:
119157
path: ./wheelhouse/*.whl
120158

121159
build_wheels_musllinux:
122-
name: Build wheels on musllinux_1_1 for ${{ matrix.arch }}
160+
name: Build wheels on musllinux_1_2 for ${{ matrix.arch }}
123161
runs-on: ubuntu-latest
124162
strategy:
125163
matrix:
126-
arch: [x86_64, i686, aarch64, s390x]
164+
arch: [x86_64, i686, s390x]
127165

128166
env:
129-
CIBW_MUSLLINUX_X86_64_IMAGE: musllinux_1_1
130-
CIBW_MUSLLINUX_I686_IMAGE: musllinux_1_1
131-
CIBW_MUSLLINUX_AARCH64_IMAGE: musllinux_1_1
132-
CIBW_MUSLLINUX_S390X_IMAGE: musllinux_1_1
167+
CIBW_MUSLLINUX_X86_64_IMAGE: musllinux_1_2
168+
CIBW_MUSLLINUX_I686_IMAGE: musllinux_1_2
169+
CIBW_MUSLLINUX_S390X_IMAGE: musllinux_1_2
133170
CIBW_BUILD: cp3*-musllinux*
134171
CIBW_ARCHS: ${{matrix.arch}}
135172

@@ -148,7 +185,40 @@ jobs:
148185
python-version: '3.13'
149186

150187
- name: Install cibuildwheel
151-
run: python -m pip install cibuildwheel==2.21.3
188+
run: python -m pip install cibuildwheel==2.22.0
189+
190+
- name: Build wheels
191+
run: python -m cibuildwheel --output-dir wheelhouse
192+
193+
- uses: actions/upload-artifact@v4
194+
with:
195+
name: artifact-musllinux-${{matrix.arch}}
196+
path: ./wheelhouse/*.whl
197+
198+
build_wheels_musllinux_arm:
199+
name: Build wheels on musllinux_1_2 for ${{ matrix.arch }}
200+
runs-on: ubuntu-24.04-arm
201+
strategy:
202+
matrix:
203+
arch: [aarch64]
204+
205+
env:
206+
CIBW_MUSLLINUX_AARCH64_IMAGE: musllinux_1_2
207+
CIBW_BUILD: cp3*-musllinux*
208+
CIBW_ARCHS: ${{matrix.arch}}
209+
210+
steps:
211+
- uses: actions/checkout@v4
212+
with:
213+
submodules: recursive
214+
215+
- uses: actions/setup-python@v5
216+
name: Install Python
217+
with:
218+
python-version: '3.13'
219+
220+
- name: Install cibuildwheel
221+
run: python -m pip install cibuildwheel==2.22.0
152222

153223
- name: Build wheels
154224
run: python -m cibuildwheel --output-dir wheelhouse

0 commit comments

Comments
 (0)