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