1- # This file is autogenerated by maturin v1.7 .0
1+ # This file is autogenerated by maturin v1.9 .0
22# To update, run
33#
44# maturin generate-ci github --zig
@@ -25,18 +25,18 @@ jobs:
2525 strategy :
2626 matrix :
2727 platform :
28- - runner : ubuntu-latest
28+ - runner : ubuntu-22.04
2929 target : x86_64
30- - runner : ubuntu-latest
30+ - runner : ubuntu-22.04
3131 target : x86
32- - runner : ubuntu-latest
32+ - runner : ubuntu-22.04
3333 target : aarch64
34- - runner : ubuntu-latest
34+ - runner : ubuntu-22.04
3535 target : armv7
36- - runner : ubuntu-latest
36+ - runner : ubuntu-22.04
3737 target : s390x
38- # - runner: ubuntu-latest
39- # target: ppc64le
38+ # - runner: ubuntu-22.04
39+ # target: ppc64le
4040 steps :
4141 - uses : actions/checkout@v4
4242 - uses : actions/setup-python@v5
5151 manylinux : auto
5252 before-script-linux : |
5353 sudo apt update -y && sudo apt-get install -y libssl-dev openssl pkg-config
54+ # - name: Build free-threaded wheels
55+ # uses: PyO3/maturin-action@v1
56+ # with:
57+ # target: ${{ matrix.platform.target }}
58+ # args: --release --out dist --zig -i python3.13t
59+ # sccache: 'false'
60+ # manylinux: auto
61+ # before-script-linux: |
62+ # sudo apt update -y && sudo apt-get install -y libssl-dev openssl pkg-config
5463 - name : Upload wheels
5564 uses : actions/upload-artifact@v4
5665 with :
@@ -59,17 +68,16 @@ jobs:
5968
6069 musllinux :
6170 runs-on : ${{ matrix.platform.runner }}
62- if : " startsWith(github.ref, 'refs/tags/')"
6371 strategy :
6472 matrix :
6573 platform :
66- - runner : ubuntu-latest
74+ - runner : ubuntu-22.04
6775 target : x86_64
68- - runner : ubuntu-latest
76+ - runner : ubuntu-22.04
6977 target : x86
70- - runner : ubuntu-latest
78+ - runner : ubuntu-22.04
7179 target : aarch64
72- - runner : ubuntu-latest
80+ - runner : ubuntu-22.04
7381 target : armv7
7482 steps :
7583 - uses : actions/checkout@v4
8391 args : --release --out dist
8492 sccache : ' false'
8593 manylinux : musllinux_1_2
94+ before-script-linux : |
95+ sudo apt update -y && sudo apt-get install -y libssl-dev openssl pkg-config
96+ # - name: Build free-threaded wheels
97+ # uses: PyO3/maturin-action@v1
98+ # with:
99+ # target: ${{ matrix.platform.target }}
100+ # args: --release --out dist -i python3.13t
101+ # sccache: 'false'
102+ # manylinux: musllinux_1_2
86103 - name : Upload wheels
87104 uses : actions/upload-artifact@v4
88105 with :
@@ -91,12 +108,13 @@ jobs:
91108
92109 windows :
93110 runs-on : ${{ matrix.platform.runner }}
94- if : " startsWith(github.ref, 'refs/tags/')"
95111 strategy :
96112 matrix :
97113 platform :
98114 - runner : windows-latest
99115 target : x64
116+ - runner : windows-latest
117+ target : x86
100118 steps :
101119 - uses : actions/checkout@v4
102120 - uses : actions/setup-python@v5
@@ -109,6 +127,16 @@ jobs:
109127 target : ${{ matrix.platform.target }}
110128 args : --release --out dist
111129 sccache : ' false'
130+ - uses : actions/setup-python@v5
131+ with :
132+ python-version : 3.13t
133+ architecture : ${{ matrix.platform.target }}
134+ # - name: Build free-threaded wheels
135+ # uses: PyO3/maturin-action@v1
136+ # with:
137+ # target: ${{ matrix.platform.target }}
138+ # args: --release --out dist -i python3.13t
139+ # sccache: 'false'
112140 - name : Upload wheels
113141 uses : actions/upload-artifact@v4
114142 with :
@@ -117,11 +145,10 @@ jobs:
117145
118146 macos :
119147 runs-on : ${{ matrix.platform.runner }}
120- if : " startsWith(github.ref, 'refs/tags/')"
121148 strategy :
122149 matrix :
123150 platform :
124- - runner : macos-12
151+ - runner : macos-13
125152 target : x86_64
126153 - runner : macos-14
127154 target : aarch64
@@ -136,6 +163,12 @@ jobs:
136163 target : ${{ matrix.platform.target }}
137164 args : --release --out dist
138165 sccache : ' false'
166+ # - name: Build free-threaded wheels
167+ # uses: PyO3/maturin-action@v1
168+ # with:
169+ # target: ${{ matrix.platform.target }}
170+ # args: --release --out dist -i python3.13t
171+ # sccache: 'false'
139172 - name : Upload wheels
140173 uses : actions/upload-artifact@v4
141174 with :
@@ -146,9 +179,6 @@ jobs:
146179 runs-on : ubuntu-latest
147180 steps :
148181 - uses : actions/checkout@v4
149- - uses : actions/setup-python@v5
150- with :
151- python-version : 3.x
152182 - name : Build sdist
153183 uses : PyO3/maturin-action@v1
154184 with :
@@ -163,18 +193,26 @@ jobs:
163193 release :
164194 name : Release
165195 runs-on : ubuntu-latest
166- if : " startsWith(github.ref, 'refs/tags/')"
196+ if : ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }}
167197 needs : [linux, musllinux, windows, macos, sdist]
168198 permissions :
199+ # Use to sign the release artifacts
169200 id-token : write
170- environment : release
201+ # Used to upload release artifacts
202+ contents : write
203+ # Used to generate artifact attestation
204+ attestations : write
171205 steps :
172206 - uses : actions/download-artifact@v4
173- - uses : actions/setup-python@v5
207+ - name : Generate artifact attestation
208+ uses : actions/attest-build-provenance@v2
174209 with :
175- python-version : 3.x
210+ subject-path : ' wheels-*/* '
176211 - name : Publish to PyPI
212+ if : ${{ startsWith(github.ref, 'refs/tags/') }}
177213 uses : PyO3/maturin-action@v1
214+ # env:
215+ # MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
178216 with :
179217 command : upload
180218 args : --non-interactive --skip-existing wheels-*/*
0 commit comments