Skip to content

Commit df27a9f

Browse files
committed
CI: update, add python3.13t builds
1 parent c0ad203 commit df27a9f

File tree

1 file changed

+51
-13
lines changed

1 file changed

+51
-13
lines changed

.github/workflows/CI.yml

Lines changed: 51 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This file is autogenerated by maturin v1.7.0
1+
# This file is autogenerated by maturin v1.8.0
22
# To update, run
33
#
44
# maturin generate-ci github -o .github/workflows/CI.yml --pytest
@@ -24,17 +24,17 @@ jobs:
2424
strategy:
2525
matrix:
2626
platform:
27-
- runner: ubuntu-latest
27+
- runner: ubuntu-22.04
2828
target: x86_64
29-
- runner: ubuntu-latest
29+
- runner: ubuntu-22.04
3030
target: x86
31-
- runner: ubuntu-latest
31+
- runner: ubuntu-22.04
3232
target: aarch64
33-
- runner: ubuntu-latest
33+
- runner: ubuntu-22.04
3434
target: armv7
35-
- runner: ubuntu-latest
35+
- runner: ubuntu-22.04
3636
target: s390x
37-
- runner: ubuntu-latest
37+
- runner: ubuntu-22.04
3838
target: ppc64le
3939
steps:
4040
- uses: actions/checkout@v4
@@ -48,6 +48,13 @@ jobs:
4848
args: --release --out dist
4949
sccache: 'true'
5050
manylinux: auto
51+
- name: Build free-threaded wheels
52+
uses: PyO3/maturin-action@v1
53+
with:
54+
target: ${{ matrix.platform.target }}
55+
args: --release --out dist -i python3.13t
56+
sccache: 'true'
57+
manylinux: auto
5158
- name: Upload wheels
5259
uses: actions/upload-artifact@v4
5360
with:
@@ -84,13 +91,13 @@ jobs:
8491
strategy:
8592
matrix:
8693
platform:
87-
- runner: ubuntu-latest
94+
- runner: ubuntu-22.04
8895
target: x86_64
89-
- runner: ubuntu-latest
96+
- runner: ubuntu-22.04
9097
target: x86
91-
- runner: ubuntu-latest
98+
- runner: ubuntu-22.04
9299
target: aarch64
93-
- runner: ubuntu-latest
100+
- runner: ubuntu-22.04
94101
target: armv7
95102
steps:
96103
- uses: actions/checkout@v4
@@ -104,6 +111,13 @@ jobs:
104111
args: --release --out dist
105112
sccache: 'true'
106113
manylinux: musllinux_1_2
114+
- name: Build free-threaded wheels
115+
uses: PyO3/maturin-action@v1
116+
with:
117+
target: ${{ matrix.platform.target }}
118+
args: --release --out dist -i python3.13t
119+
sccache: 'true'
120+
manylinux: musllinux_1_2
107121
- name: Upload wheels
108122
uses: actions/upload-artifact@v4
109123
with:
@@ -161,6 +175,12 @@ jobs:
161175
target: ${{ matrix.platform.target }}
162176
args: --release --out dist
163177
sccache: 'true'
178+
- name: Build free-threaded wheels
179+
uses: PyO3/maturin-action@v1
180+
with:
181+
target: ${{ matrix.platform.target }}
182+
args: --release --out dist -i python3.13t
183+
sccache: 'true'
164184
- name: Upload wheels
165185
uses: actions/upload-artifact@v4
166186
with:
@@ -182,7 +202,7 @@ jobs:
182202
strategy:
183203
matrix:
184204
platform:
185-
- runner: macos-12
205+
- runner: macos-13
186206
target: x86_64
187207
- runner: macos-14
188208
target: aarch64
@@ -197,6 +217,12 @@ jobs:
197217
target: ${{ matrix.platform.target }}
198218
args: --release --out dist
199219
sccache: 'true'
220+
- name: Build free-threaded wheels
221+
uses: PyO3/maturin-action@v1
222+
with:
223+
target: ${{ matrix.platform.target }}
224+
args: --release --out dist -i python3.13t
225+
sccache: 'true'
200226
- name: Upload wheels
201227
uses: actions/upload-artifact@v4
202228
with:
@@ -229,11 +255,23 @@ jobs:
229255
release:
230256
name: Release
231257
runs-on: ubuntu-latest
232-
if: "startsWith(github.ref, 'refs/tags/')"
258+
if: ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }}
233259
needs: [linux, musllinux, windows, macos, sdist]
260+
permissions:
261+
# Use to sign the release artifacts
262+
id-token: write
263+
# Used to upload release artifacts
264+
contents: write
265+
# Used to generate artifact attestation
266+
attestations: write
234267
steps:
235268
- uses: actions/download-artifact@v4
269+
- name: Generate artifact attestation
270+
uses: actions/attest-build-provenance@v1
271+
with:
272+
subject-path: 'wheels-*/*'
236273
- name: Publish to PyPI
274+
if: ${{ startsWith(github.ref, 'refs/tags/') }}
237275
uses: PyO3/maturin-action@v1
238276
env:
239277
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)