1
- # This file is autogenerated by maturin v1.3.2
1
+ # This file is autogenerated by maturin v1.7.8
2
2
# To update, run
3
3
#
4
4
# maturin generate-ci github
@@ -20,101 +20,161 @@ permissions:
20
20
21
21
jobs :
22
22
linux :
23
- runs-on : ubuntu-latest
23
+ runs-on : ${{ matrix.platform.runner }}
24
24
strategy :
25
+ fail-fast : false
25
26
matrix :
26
- target : [x86_64, x86, aarch64, armv7, s390x, ppc64le]
27
+ platform :
28
+ - runner : ubuntu-22.04
29
+ target : x86_64
30
+ - runner : ubuntu-22.04
31
+ target : x86
32
+ - runner : ubuntu-22.04
33
+ target : aarch64
34
+ - runner : ubuntu-22.04
35
+ target : armv7
36
+ - runner : ubuntu-22.04
37
+ target : s390x
38
+ - runner : ubuntu-22.04
39
+ target : ppc64le
27
40
steps :
28
- - uses : actions/checkout@v3
29
- - uses : actions/setup-python@v4
41
+ - uses : actions/checkout@v4
42
+ - uses : actions/setup-python@v5
30
43
with :
31
- python-version : ' 3.10 '
44
+ python-version : 3.12
32
45
- name : Build wheels
33
46
uses : PyO3/maturin-action@v1
34
47
with :
35
- target : ${{ matrix.target }}
36
- args : --release --out dist --find-interpreter
48
+ target : ${{ matrix.platform. target }}
49
+ args : --release --out dist
37
50
sccache : ' true'
38
51
manylinux : auto
39
52
- name : Upload wheels
40
- uses : actions/upload-artifact@v3
53
+ uses : actions/upload-artifact@v4
54
+ with :
55
+ name : wheels-linux-${{ matrix.platform.target }}
56
+ path : dist
57
+
58
+ musllinux :
59
+ runs-on : ${{ matrix.platform.runner }}
60
+ strategy :
61
+ matrix :
62
+ platform :
63
+ - runner : ubuntu-22.04
64
+ target : x86_64
65
+ - runner : ubuntu-22.04
66
+ target : x86
67
+ - runner : ubuntu-22.04
68
+ target : aarch64
69
+ - runner : ubuntu-22.04
70
+ target : armv7
71
+ steps :
72
+ - uses : actions/checkout@v4
73
+ - uses : actions/setup-python@v5
74
+ with :
75
+ python-version : 3.12
76
+ - name : Build wheels
77
+ uses : PyO3/maturin-action@v1
78
+ with :
79
+ target : ${{ matrix.platform.target }}
80
+ args : --release --out dist
81
+ sccache : ' true'
82
+ manylinux : musllinux_1_2
83
+ - name : Upload wheels
84
+ uses : actions/upload-artifact@v4
41
85
with :
42
- name : wheels
86
+ name : wheels-musllinux-${{ matrix.platform.target }}
43
87
path : dist
44
88
45
89
windows :
46
- runs-on : windows-latest
90
+ runs-on : ${{ matrix.platform.runner }}
47
91
strategy :
48
92
matrix :
49
- target : [x64, x86]
93
+ platform :
94
+ - runner : windows-latest
95
+ target : x64
96
+ - runner : windows-latest
97
+ target : x86
50
98
steps :
51
- - uses : actions/checkout@v3
52
- - uses : actions/setup-python@v4
99
+ - uses : actions/checkout@v4
100
+ - uses : actions/setup-python@v5
53
101
with :
54
- python-version : ' 3.10 '
55
- architecture : ${{ matrix.target }}
102
+ python-version : 3.12
103
+ architecture : ${{ matrix.platform. target }}
56
104
- name : Build wheels
57
105
uses : PyO3/maturin-action@v1
58
106
with :
59
- target : ${{ matrix.target }}
60
- args : --release --out dist --find-interpreter
107
+ target : ${{ matrix.platform. target }}
108
+ args : --release --out dist
61
109
sccache : ' true'
62
110
- name : Upload wheels
63
- uses : actions/upload-artifact@v3
111
+ uses : actions/upload-artifact@v4
64
112
with :
65
- name : wheels
113
+ name : wheels-windows-${{ matrix.platform.target }}
66
114
path : dist
67
115
68
116
macos :
69
- runs-on : macos-latest
117
+ runs-on : ${{ matrix.platform.runner }}
70
118
strategy :
71
119
matrix :
72
- target : [x86_64, aarch64]
120
+ platform :
121
+ - runner : macos-13
122
+ target : x86_64
123
+ - runner : macos-14
124
+ target : aarch64
73
125
steps :
74
- - uses : actions/checkout@v3
75
- - uses : actions/setup-python@v4
126
+ - uses : actions/checkout@v4
127
+ - uses : actions/setup-python@v5
76
128
with :
77
- python-version : ' 3.10 '
129
+ python-version : 3.12
78
130
- name : Build wheels
79
131
uses : PyO3/maturin-action@v1
80
132
with :
81
- target : ${{ matrix.target }}
82
- args : --release --out dist --find-interpreter
133
+ target : ${{ matrix.platform. target }}
134
+ args : --release --out dist
83
135
sccache : ' true'
84
136
- name : Upload wheels
85
- uses : actions/upload-artifact@v3
137
+ uses : actions/upload-artifact@v4
86
138
with :
87
- name : wheels
139
+ name : wheels-macos-${{ matrix.platform.target }}
88
140
path : dist
89
141
90
142
sdist :
91
143
runs-on : ubuntu-latest
92
144
steps :
93
- - uses : actions/checkout@v3
145
+ - uses : actions/checkout@v4
94
146
- name : Build sdist
95
147
uses : PyO3/maturin-action@v1
96
148
with :
97
149
command : sdist
98
150
args : --out dist
99
151
- name : Upload sdist
100
- uses : actions/upload-artifact@v3
152
+ uses : actions/upload-artifact@v4
101
153
with :
102
- name : wheels
154
+ name : wheels-sdist
103
155
path : dist
104
156
105
157
release :
106
158
name : Release
107
159
runs-on : ubuntu-latest
108
- if : " startsWith(github.ref, 'refs/tags/')"
109
- needs : [linux, windows, macos, sdist]
160
+ if : ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }}
161
+ needs : [linux, musllinux, windows, macos, sdist]
162
+ permissions :
163
+ # Use to sign the release artifacts
164
+ id-token : write
165
+ # Used to upload release artifacts
166
+ contents : write
167
+ # Used to generate artifact attestation
168
+ attestations : write
110
169
steps :
111
- - uses : actions/download-artifact@v3
170
+ - uses : actions/download-artifact@v4
171
+ - name : Generate artifact attestation
172
+ uses : actions/attest-build-provenance@v1
112
173
with :
113
- name : wheels
174
+ subject-path : ' wheels-*/* '
114
175
- name : Publish to PyPI
176
+ if : ${{ startsWith(github.ref, 'refs/tags/') }}
115
177
uses : PyO3/maturin-action@v1
116
- env :
117
- MATURIN_PYPI_TOKEN : ${{ secrets.PYPI_TOKEN }}
118
178
with :
119
179
command : upload
120
- args : --non-interactive --skip-existing *
180
+ args : --non-interactive --skip-existing wheels-*/ *
0 commit comments