Skip to content

Commit d5fdcc1

Browse files
authored
Updated test-deploy workflow (#281)
1 parent ac8ff23 commit d5fdcc1

File tree

1 file changed

+84
-14
lines changed

1 file changed

+84
-14
lines changed

.github/workflows/deploy-test-pypi.yml

Lines changed: 84 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
python-version: '3.13'
3131

3232
- name: Install cibuildwheel
33-
run: python -m pip install cibuildwheel==2.21.3
33+
run: python -m pip install cibuildwheel==2.22.0
3434

3535
- name: Build wheels
3636
run: python -m cibuildwheel --output-dir wheelhouse
@@ -61,7 +61,7 @@ jobs:
6161
python-version: '3.13'
6262

6363
- name: Install cibuildwheel
64-
run: python -m pip install cibuildwheel==2.21.3
64+
run: python -m pip install cibuildwheel==2.22.0
6565

6666
- name: Build wheels
6767
run: python -m cibuildwheel --output-dir wheelhouse
@@ -77,15 +77,14 @@ jobs:
7777
strategy:
7878
matrix:
7979
distro: [manylinux2014, manylinux_2_28]
80-
arch: [x86_64, aarch64, s390x]
80+
arch: [x86_64]
8181
include:
8282
- distro: manylinux2014
8383
arch: i686
8484

8585
env:
8686
CIBW_MANYLINUX_X86_64_IMAGE: ${{ matrix.distro }}
8787
CIBW_MANYLINUX_I686_IMAGE: ${{ matrix.distro }}
88-
CIBW_MANYLINUX_AARCH64_IMAGE: ${{ matrix.distro }}
8988
CIBW_MANYLINUX_S390X_IMAGE: ${{ matrix.distro }}
9089
CIBW_BUILD: cp3*-manylinux*
9190
CIBW_ARCHS: ${{matrix.arch}}
@@ -105,7 +104,46 @@ jobs:
105104
python-version: '3.13'
106105

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

110148
- name: Build wheels
111149
run: python -m cibuildwheel --output-dir wheelhouse
@@ -116,17 +154,16 @@ jobs:
116154
path: ./wheelhouse/*.whl
117155

118156
build_wheels_musllinux:
119-
name: Build wheels on musllinux_1_1 for ${{ matrix.arch }}
157+
name: Build wheels on musllinux_1_2 for ${{ matrix.arch }}
120158
runs-on: ubuntu-latest
121159
strategy:
122160
matrix:
123-
arch: [x86_64, i686, aarch64, s390x]
161+
arch: [x86_64, i686]
124162

125163
env:
126-
CIBW_MUSLLINUX_X86_64_IMAGE: musllinux_1_1
127-
CIBW_MUSLLINUX_I686_IMAGE: musllinux_1_1
128-
CIBW_MUSLLINUX_AARCH64_IMAGE: musllinux_1_1
129-
CIBW_MUSLLINUX_S390X_IMAGE: musllinux_1_1
164+
CIBW_MUSLLINUX_X86_64_IMAGE: musllinux_1_2
165+
CIBW_MUSLLINUX_I686_IMAGE: musllinux_1_2
166+
CIBW_MUSLLINUX_S390X_IMAGE: musllinux_1_2
130167
CIBW_BUILD: cp3*-musllinux*
131168
CIBW_ARCHS: ${{matrix.arch}}
132169

@@ -145,7 +182,40 @@ jobs:
145182
python-version: '3.13'
146183

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

150220
- name: Build wheels
151221
run: python -m cibuildwheel --output-dir wheelhouse
@@ -167,7 +237,7 @@ jobs:
167237
name: Install Python
168238
with:
169239
python-version: '3.13'
170-
240+
171241
- name: Install build
172242
run: pip install build
173243

@@ -180,7 +250,7 @@ jobs:
180250
path: dist/*.tar.gz
181251

182252
upload_pypi:
183-
needs: [build_wheels_windows, build_wheels_mac, build_wheels_manylinux, build_wheels_musllinux, build_sdist]
253+
needs: [build_wheels_windows, build_wheels_mac, build_wheels_manylinux, build_wheels_manylinux_arm, build_wheels_musllinux, build_wheels_musllinux_arm, build_sdist]
184254
runs-on: ubuntu-latest
185255

186256
#if: github.event_name == 'release' && github.event.action == 'published'

0 commit comments

Comments
 (0)