1- name : Build & Publish( Pi-Heif)
1+ name : Publish • Pi-Heif
22# This action build `pi-heif` which is `pillow-heif` but without `aom` and `x265` libraries.
3- # Note: Wheels for the Apple M1 are assembled locally and manually uploaded.
43
54on :
6- workflow_dispatch :
5+ workflow_run :
6+ workflows : [Publish • Pillow-Heif]
7+ types :
8+ - completed
79
810jobs :
11+ wheels_macos_arm :
12+ name : macosx • aarch64
13+ runs-on : ubuntu-20.04
14+
15+ steps :
16+ - name : Waiting for Cirrus CI
17+ 18+ with :
19+ ref : ${{ github.ref }}
20+ check-name : ' macosx • aarch64 • Pi-Heif • Cirrus'
21+ repo-token : ${{ secrets.GITHUB_TOKEN }}
22+ wait-interval : 10
23+
24+ - name : Download artifacts
25+ run : |
26+ curl -L https://api.cirrus-ci.com/v1/artifact/github/${{ github.repository }}/wheel_pi_heif_macos_arm/wheels.zip -o wheels.zip
27+ unzip wheels.zip
28+
29+ - name : Upload built wheels
30+ uses : actions/upload-artifact@v3
31+ with :
32+ name : wheels
33+ path : wheelhouse/*.whl
34+ if-no-files-found : error
35+
936 wheels_windows :
1037 name : windows • x86_64
1138 runs-on : windows-2019
@@ -277,7 +304,7 @@ jobs:
277304 path : wheelhouse/*.tar.gz
278305
279306 publish_release :
280- needs : [wheels_windows, wheels_macos, wheels_linux_cpython, wheels_linux_pypy, sdist, wheels_armv7l]
307+ needs : [wheels_windows, wheels_macos, wheels_macos_arm, wheels_linux_cpython, wheels_linux_pypy, sdist, wheels_armv7l]
281308 name : Publish release
282309 runs-on : ubuntu-20.04
283310 env :
@@ -293,7 +320,7 @@ jobs:
293320
294321 - name : Publish wheels to PyPI
295322 run : |
296- python3 -m pip install twine
297- ls -la wheelhouse/
298- python3 -m twine upload --skip-existing wheelhouse/*.whl
299- python3 -m twine upload wheelhouse/*tar.gz
323+ ls -la wheelhouse/
324+ python3 -m pip install twine
325+ python3 -m twine upload --skip-existing wheelhouse/*.whl
326+ python3 -m twine upload --skip-existing wheelhouse/*tar.gz
0 commit comments