@@ -3,6 +3,12 @@ name: Wheels • Pi-Heif
33
44on :
55 workflow_call :
6+ pull_request :
7+ paths :
8+ - ' .github/workflows/wheels-pi_heif.yml'
9+ - ' setup.*'
10+ - ' libheif/linux_*.py'
11+ - ' pyproject.toml'
612
713jobs :
814 wheels_macos_arm :
2733
2834 - name : Run cibuildwheel
2935 run : |
30- python3 -m pip install cibuildwheel==2.23.2
36+ python3 -m pip install cibuildwheel==3.1.3
3137 python3 -m cibuildwheel
3238 env :
3339 CIBW_ARCHS : " arm64"
8793
8894 - name : Run cibuildwheel
8995 run : |
90- python3 -m pip install cibuildwheel==2.23.2
96+ python3 -m pip install cibuildwheel==3.1.3
9197 python3 -m cibuildwheel
9298 env :
9399 CIBW_ARCHS : " AMD64"
@@ -119,7 +125,7 @@ jobs:
119125
120126 - name : Run cibuildwheel
121127 run : |
122- python3 -m pip install cibuildwheel==2.23.2
128+ python3 -m pip install cibuildwheel==3.1.3
123129 python3 -m cibuildwheel
124130 env :
125131 CIBW_ARCHS : " x86_64"
@@ -138,15 +144,13 @@ jobs:
138144 path : wheelhouse/*.whl
139145 if-no-files-found : error
140146
141- wheels_linux_cpython_amd64 :
147+ wheels_linux_amd64 :
142148 strategy :
143149 fail-fast : true
144150 matrix :
145151 cibw_buildlinux : [ manylinux, musllinux ]
146- name : ${{ matrix.cibw_buildlinux }} • AMD64 • CPython
152+ name : ${{ matrix.cibw_buildlinux }} • AMD64
147153 runs-on : ubuntu-24.04
148- env :
149- BUILD_DIR : " /tmp/ph_build_stuff"
150154
151155 steps :
152156 - uses : actions/checkout@v4
@@ -163,15 +167,14 @@ jobs:
163167
164168 - name : Run cibuildwheel
165169 run : |
166- python3 -m pip install cibuildwheel==2.23.2
170+ python3 -m pip install cibuildwheel==3.1.3
167171 python3 -m cibuildwheel
168172 env :
169- CIBW_BUILD : ${{ format('cp3*-{0}_x86_64', matrix.cibw_buildlinux) }}
170173 CIBW_ARCHS : " x86_64"
171174 CIBW_BEFORE_ALL_LINUX : |
172175 ${{ env.INSTALL_OS_PACKAGES }}
173176 python3 {package}/libheif/linux_build_libs.py
174- CIBW_ENVIRONMENT_LINUX : BUILD_DIR=/host${{ env.BUILD_DIR }} PH_LIGHT_ACTION=1
177+ CIBW_ENVIRONMENT_LINUX : PH_LIGHT_ACTION=1
175178
176179 - name : Checking built wheels
177180 run : |
@@ -182,19 +185,17 @@ jobs:
182185 - name : Uploading wheels
183186 uses : actions/upload-artifact@v4
184187 with :
185- name : wheels_pi_heif-${{ matrix.cibw_buildlinux }}-cpython- amd64
188+ name : wheels_pi_heif-${{ matrix.cibw_buildlinux }}-amd64
186189 path : wheelhouse/*.whl
187190 if-no-files-found : error
188191
189- wheels_linux_cpython_arm64 :
192+ wheels_linux_arm64 :
190193 strategy :
191194 fail-fast : true
192195 matrix :
193196 cibw_buildlinux : [ manylinux, musllinux ]
194- name : ${{ matrix.cibw_buildlinux }} • ARM64 • CPython
197+ name : ${{ matrix.cibw_buildlinux }} • ARM64
195198 runs-on : ubuntu-24.04-arm
196- env :
197- BUILD_DIR : " /tmp/ph_build_stuff"
198199
199200 steps :
200201 - uses : actions/checkout@v4
@@ -211,15 +212,14 @@ jobs:
211212
212213 - name : Run cibuildwheel
213214 run : |
214- python3 -m pip install cibuildwheel==2.23.2
215+ python3 -m pip install cibuildwheel==3.1.3
215216 python3 -m cibuildwheel
216217 env :
217- CIBW_BUILD : ${{ format('cp3*-{0}_aarch64', matrix.cibw_buildlinux) }}
218218 CIBW_ARCHS : " aarch64"
219219 CIBW_BEFORE_ALL_LINUX : |
220220 ${{ env.INSTALL_OS_PACKAGES }}
221221 python3 {package}/libheif/linux_build_libs.py
222- CIBW_ENVIRONMENT_LINUX : BUILD_DIR=/host${{ env.BUILD_DIR }} PH_LIGHT_ACTION=1
222+ CIBW_ENVIRONMENT_LINUX : PH_LIGHT_ACTION=1
223223
224224 - name : Checking built wheels
225225 run : |
@@ -230,91 +230,7 @@ jobs:
230230 - name : Uploading wheels
231231 uses : actions/upload-artifact@v4
232232 with :
233- name : wheels_pi_heif-${{ matrix.cibw_buildlinux }}-cpython-arm64
234- path : wheelhouse/*.whl
235- if-no-files-found : error
236-
237- wheels_linux_pypy_amd64 :
238- strategy :
239- fail-fast : true
240- matrix :
241- cibw_buildlinux : [ manylinux ]
242- name : ${{ matrix.cibw_buildlinux }} • AMD64 • PyPy
243- runs-on : ubuntu-24.04
244- env :
245- BUILD_DIR : " /tmp/ph_build_stuff"
246-
247- steps :
248- - uses : actions/checkout@v4
249- - name : Transform to Pi-Heif
250- run : |
251- cp -r -v ./pi-heif/* .
252- python3 .github/transform_to-pi_heif.py
253-
254- - name : Run cibuildwheel
255- run : |
256- python3 -m pip install "twine>=6.1.0" "packaging>=24.2"
257- python3 -m pip install cibuildwheel==2.23.2
258- python3 -m cibuildwheel
259- env :
260- CIBW_BUILD : ${{ format('pp3*-{0}_x86_64', matrix.cibw_buildlinux) }}
261- CIBW_ARCHS : " x86_64"
262- CIBW_BEFORE_ALL_LINUX : |
263- yum makecache && yum install -y libjpeg-turbo-devel lcms2-devel
264- python3 {package}/libheif/linux_build_libs.py
265- CIBW_ENVIRONMENT_LINUX : BUILD_DIR=/host${{ env.BUILD_DIR }} PH_LIGHT_ACTION=1
266-
267- - name : Checking built wheels
268- run : |
269- python3 -m pip install twine
270- python3 -m twine check wheelhouse/*
271-
272- - name : Upload wheels
273- uses : actions/upload-artifact@v4
274- with :
275- name : wheels_pi_heif-${{ matrix.cibw_buildlinux }}-pypy-amd64
276- path : wheelhouse/*.whl
277- if-no-files-found : error
278-
279- wheels_linux_pypy_arm64 :
280- strategy :
281- fail-fast : true
282- matrix :
283- cibw_buildlinux : [ manylinux ]
284- name : ${{ matrix.cibw_buildlinux }} • ARM64 • PyPy
285- runs-on : ubuntu-24.04-arm
286- env :
287- BUILD_DIR : " /tmp/ph_build_stuff"
288-
289- steps :
290- - uses : actions/checkout@v4
291- - name : Transform to Pi-Heif
292- run : |
293- cp -r -v ./pi-heif/* .
294- python3 .github/transform_to-pi_heif.py
295-
296- - name : Run cibuildwheel
297- run : |
298- python3 -m pip install cibuildwheel==2.23.2
299- python3 -m cibuildwheel
300- env :
301- CIBW_BUILD : ${{ format('pp3*-{0}_aarch64', matrix.cibw_buildlinux) }}
302- CIBW_ARCHS : " aarch64"
303- CIBW_BEFORE_ALL_LINUX : |
304- yum makecache && yum install -y libjpeg-turbo-devel lcms2-devel
305- python3 {package}/libheif/linux_build_libs.py
306- CIBW_ENVIRONMENT_LINUX : BUILD_DIR=/host${{ env.BUILD_DIR }} PH_LIGHT_ACTION=1
307-
308- - name : Checking built wheels
309- run : |
310- python3 -m pip install "twine>=6.1.0" "packaging>=24.2"
311- python3 -m pip install twine
312- python3 -m twine check wheelhouse/*
313-
314- - name : Upload wheels
315- uses : actions/upload-artifact@v4
316- with :
317- name : wheels_pi_heif-${{ matrix.cibw_buildlinux }}-pypy-arm64
233+ name : wheels_pi_heif-${{ matrix.cibw_buildlinux }}-arm64
318234 path : wheelhouse/*.whl
319235 if-no-files-found : error
320236
0 commit comments