@@ -3,9 +3,9 @@ name: release-deploy
33on :
44 release :
55 types : [ published ]
6- push :
7- branches : [ main ]
8- pull_request :
6+ # push:
7+ # branches: [ main ]
8+ # pull_request:
99
1010jobs :
1111 build-sdist :
@@ -42,77 +42,77 @@ jobs:
4242 matrix :
4343 include :
4444 # Windows 32 bit
45- # - os: windows-latest
46- # python: 310
47- # platform_id: win32
48- # - os: windows-latest
49- # python: 311
50- # platform_id: win32
51- # - os: windows-latest
52- # python: 312
53- # platform_id: win32
54- # - os: windows-latest
55- # python: 313
56- # platform_id: win32
57- # - os: windows-latest
58- # python: 314
59- # platform_id: win32
45+ - os : windows-latest
46+ python : 310
47+ platform_id : win32
48+ - os : windows-latest
49+ python : 311
50+ platform_id : win32
51+ - os : windows-latest
52+ python : 312
53+ platform_id : win32
54+ - os : windows-latest
55+ python : 313
56+ platform_id : win32
57+ - os : windows-latest
58+ python : 314
59+ platform_id : win32
6060
6161 # Windows 64 bit
62- # - os: windows-latest
63- # python: 310
64- # platform_id: win_amd64
65- # - os: windows-latest
66- # python: 311
67- # platform_id: win_amd64
68- # - os: windows-latest
69- # python: 312
70- # platform_id: win_amd64
71- # - os: windows-latest
72- # python: 313
73- # platform_id: win_amd64
74- # - os: windows-latest
75- # python: 314
76- # platform_id: win_amd64
62+ - os : windows-latest
63+ python : 310
64+ platform_id : win_amd64
65+ - os : windows-latest
66+ python : 311
67+ platform_id : win_amd64
68+ - os : windows-latest
69+ python : 312
70+ platform_id : win_amd64
71+ - os : windows-latest
72+ python : 313
73+ platform_id : win_amd64
74+ - os : windows-latest
75+ python : 314
76+ platform_id : win_amd64
7777
7878 # Linux 64 bit manylinux2014
79- # - os: ubuntu-latest
80- # python: 310
81- # platform_id: manylinux_x86_64
82- # manylinux_image: manylinux2014
83- # - os: ubuntu-latest
84- # python: 311
85- # platform_id: manylinux_x86_64
86- # manylinux_image: manylinux2014
87- # - os: ubuntu-latest
88- # python: 312
89- # platform_id: manylinux_x86_64
90- # manylinux_image: manylinux2014
91- # - os: ubuntu-latest
92- # python: 313
93- # platform_id: manylinux_x86_64
94- # manylinux_image: manylinux2014
95- # - os: ubuntu-latest
96- # python: 314
97- # platform_id: manylinux_x86_64
98- # manylinux_image: manylinux2014
79+ - os : ubuntu-latest
80+ python : 310
81+ platform_id : manylinux_x86_64
82+ manylinux_image : manylinux2014
83+ - os : ubuntu-latest
84+ python : 311
85+ platform_id : manylinux_x86_64
86+ manylinux_image : manylinux2014
87+ - os : ubuntu-latest
88+ python : 312
89+ platform_id : manylinux_x86_64
90+ manylinux_image : manylinux2014
91+ - os : ubuntu-latest
92+ python : 313
93+ platform_id : manylinux_x86_64
94+ manylinux_image : manylinux2014
95+ - os : ubuntu-latest
96+ python : 314
97+ platform_id : manylinux_x86_64
98+ manylinux_image : manylinux2014
9999
100100 # Linux aarch64
101- # - os: ubuntu-latest
102- # python: 310
103- # platform_id: manylinux_aarch64
104- # - os: ubuntu-latest
105- # python: 311
106- # platform_id: manylinux_aarch64
107- # - os: ubuntu-latest
108- # python: 312
109- # platform_id: manylinux_aarch64
110- # - os: ubuntu-latest
111- # python: 313
112- # platform_id: manylinux_aarch64
113- # - os: ubuntu-latest
114- # python: 314
115- # platform_id: manylinux_aarch64
101+ - os : ubuntu-latest
102+ python : 310
103+ platform_id : manylinux_aarch64
104+ - os : ubuntu-latest
105+ python : 311
106+ platform_id : manylinux_aarch64
107+ - os : ubuntu-latest
108+ python : 312
109+ platform_id : manylinux_aarch64
110+ - os : ubuntu-latest
111+ python : 313
112+ platform_id : manylinux_aarch64
113+ - os : ubuntu-latest
114+ python : 314
115+ platform_id : manylinux_aarch64
116116
117117 # MacOS x86_64
118118 - os : macos-26-intel
@@ -170,56 +170,56 @@ jobs:
170170 name : wheel-${{ matrix.python }}-${{ matrix.platform_id }}
171171 path : ./dist
172172
173- # build-wheels-macos-arm64:
174- # name: Build wheel for cp${{ matrix.python }}-${{ matrix.platform_id }}
175- # runs-on: ${{ matrix.os }}
176- # strategy:
177- # fail-fast: false
178- # matrix:
179- # include:
180- # # MacOS arm64
181- # - os: macos-14
182- # python: 310
183- # platform_id: macosx_arm64
184- # - os: macos-14
185- # python: 311
186- # platform_id: macosx_arm64
187- # - os: macos-14
188- # python: 312
189- # platform_id: macosx_arm64
190- # - os: macos-14
191- # python: 313
192- # platform_id: macosx_arm64
193- # - os: macos-14
194- # python: 314
195- # platform_id: macosx_arm64
196- #
197- # steps:
198- # - uses: actions/checkout@v6
199- # with:
200- # submodules: true
201- #
202- # - uses: actions/setup-python@v6
203- # name: Install Python
204- # with:
205- # python-version: '3.11'
206- #
207- # - name: Install cibuildwheel
208- # run: python -m pip install cibuildwheel>=3.4 wheel>=0.42
209- #
210- # - name: Build wheels
211- # env:
212- # CIBW_BUILD: cp${{ matrix.python }}-*
213- # CIBW_ARCHS_MACOS: arm64
214- # CIBW_BUILD_VERBOSITY: 1
215- # run: |
216- # python -m cibuildwheel --output-dir dist
217- #
218- # - name: Store artifacts
219- # uses: actions/upload-artifact@v7
220- # with:
221- # name: wheel-${{ matrix.python }}-${{ matrix.platform_id }}
222- # path: ./dist/*.whl
173+ build-wheels-macos-arm64 :
174+ name : Build wheel for cp${{ matrix.python }}-${{ matrix.platform_id }}
175+ runs-on : ${{ matrix.os }}
176+ strategy :
177+ fail-fast : false
178+ matrix :
179+ include :
180+ # MacOS arm64
181+ - os : macos-14
182+ python : 310
183+ platform_id : macosx_arm64
184+ - os : macos-14
185+ python : 311
186+ platform_id : macosx_arm64
187+ - os : macos-14
188+ python : 312
189+ platform_id : macosx_arm64
190+ - os : macos-14
191+ python : 313
192+ platform_id : macosx_arm64
193+ - os : macos-14
194+ python : 314
195+ platform_id : macosx_arm64
196+
197+ steps :
198+ - uses : actions/checkout@v6
199+ with :
200+ submodules : true
201+
202+ - uses : actions/setup-python@v6
203+ name : Install Python
204+ with :
205+ python-version : ' 3.11'
206+
207+ - name : Install cibuildwheel
208+ run : python -m pip install cibuildwheel>=3.4 wheel>=0.42
209+
210+ - name : Build wheels
211+ env :
212+ CIBW_BUILD : cp${{ matrix.python }}-*
213+ CIBW_ARCHS_MACOS : arm64
214+ CIBW_BUILD_VERBOSITY : 1
215+ run : |
216+ python -m cibuildwheel --output-dir dist
217+
218+ - name : Store artifacts
219+ uses : actions/upload-artifact@v7
220+ with :
221+ name : wheel-${{ matrix.python }}-${{ matrix.platform_id }}
222+ path : ./dist/*.whl
223223
224224
225225 # test-package:
@@ -274,23 +274,23 @@ jobs:
274274 # The pypi upload fails with non-linux containers, so grab the uploaded
275275 # artifacts and run using those
276276 # See: https://github.com/pypa/gh-action-pypi-publish/discussions/15
277- # deploy:
278- # name: Upload wheels to PyPI
279- # # needs: [ test-package ]
280- # needs: [ build-wheels, build-sdist, build-wheels-macos-arm64 ]
281- # runs-on: ubuntu-latest
282- # environment:
283- # name: pypi
284- # url: https://pypi.org/project/pylibjpeg-libjpeg/
285- # permissions:
286- # id-token: write
287- #
288- # steps:
289- # - name: Download the wheels
290- # uses: actions/download-artifact@v8
291- # with:
292- # path: dist/
293- # merge-multiple: true
294- #
295- # - name: Publish package to PyPi
296- # uses: pypa/gh-action-pypi-publish@release/v1
277+ deploy :
278+ name : Upload wheels to PyPI
279+ # needs: [ test-package ]
280+ needs : [ build-wheels, build-sdist, build-wheels-macos-arm64 ]
281+ runs-on : ubuntu-latest
282+ environment :
283+ name : pypi
284+ url : https://pypi.org/project/pylibjpeg-libjpeg/
285+ permissions :
286+ id-token : write
287+
288+ steps :
289+ - name : Download the wheels
290+ uses : actions/download-artifact@v8
291+ with :
292+ path : dist/
293+ merge-multiple : true
294+
295+ - name : Publish package to PyPi
296+ uses : pypa/gh-action-pypi-publish@release/v1
0 commit comments