25
25
matrix :
26
26
target : [x86_64, x86, aarch64, armv7, s390x, ppc64le]
27
27
steps :
28
- - uses : actions/checkout@v3
29
- - uses : actions/setup-python@v4
28
+ - uses : actions/checkout@v4
29
+ - uses : actions/setup-python@v5
30
30
with :
31
31
python-version : ' 3.10'
32
32
- name : Build wheels
@@ -37,19 +37,19 @@ jobs:
37
37
sccache : ' true'
38
38
manylinux : auto
39
39
- name : Upload wheels
40
- uses : actions/upload-artifact@v3
40
+ uses : actions/upload-artifact@v4
41
41
with :
42
- name : wheels
43
- path : dist
42
+ name : wheels-${{ runner.os }}-${{ matrix.target }}
43
+ path : dist/*
44
44
45
45
windows :
46
46
runs-on : windows-latest
47
47
strategy :
48
48
matrix :
49
49
target : [x64, x86]
50
50
steps :
51
- - uses : actions/checkout@v3
52
- - uses : actions/setup-python@v4
51
+ - uses : actions/checkout@v4
52
+ - uses : actions/setup-python@v5
53
53
with :
54
54
python-version : ' 3.10'
55
55
architecture : ${{ matrix.target }}
@@ -60,19 +60,19 @@ jobs:
60
60
args : --release --out dist --find-interpreter
61
61
sccache : ' true'
62
62
- name : Upload wheels
63
- uses : actions/upload-artifact@v3
63
+ uses : actions/upload-artifact@v4
64
64
with :
65
- name : wheels
66
- path : dist
65
+ name : wheels-${{ runner.os }}-${{ matrix.target }}
66
+ path : dist/*
67
67
68
68
macos :
69
69
runs-on : macos-latest
70
70
strategy :
71
71
matrix :
72
72
target : [x86_64, aarch64]
73
73
steps :
74
- - uses : actions/checkout@v3
75
- - uses : actions/setup-python@v4
74
+ - uses : actions/checkout@v4
75
+ - uses : actions/setup-python@v5
76
76
with :
77
77
python-version : ' 3.10'
78
78
- name : Build wheels
@@ -82,35 +82,53 @@ jobs:
82
82
args : --release --out dist --find-interpreter
83
83
sccache : ' true'
84
84
- name : Upload wheels
85
- uses : actions/upload-artifact@v3
85
+ uses : actions/upload-artifact@v4
86
86
with :
87
- name : wheels
88
- path : dist
87
+ name : wheels-${{ runner.os }}-${{ matrix.target }}
88
+ path : dist/*
89
89
90
90
sdist :
91
91
runs-on : ubuntu-latest
92
92
steps :
93
- - uses : actions/checkout@v3
93
+ - uses : actions/checkout@v4
94
94
- name : Build sdist
95
95
uses : PyO3/maturin-action@v1
96
96
with :
97
97
command : sdist
98
98
args : --out dist
99
99
- name : Upload sdist
100
- uses : actions/upload-artifact@v3
100
+ uses : actions/upload-artifact@v4
101
101
with :
102
- name : wheels
103
- path : dist
102
+ name : wheels-sdist
103
+ path : dist/*
104
+
105
+ release-preview :
106
+ name : Release Preview
107
+ runs-on : ubuntu-latest
108
+ needs : [linux, windows, macos, sdist]
109
+ steps :
110
+ - uses : actions/download-artifact@v4
111
+ with :
112
+ merge-multiple : true
113
+ - name : check files
114
+ run : ls -R
115
+ - name : Publish to Test PyPI
116
+ uses : PyO3/maturin-action@v1
117
+ env :
118
+ MATURIN_PYPI_TOKEN : ${{ secrets.PYPI_API_TOKEN }}
119
+ with :
120
+ command : upload
121
+ args : --repository="testpypi" --skip-existing *
104
122
105
123
release :
106
124
name : Release
107
125
runs-on : ubuntu-latest
108
126
if : startsWith(github.ref, 'refs/tags/')
109
127
needs : [linux, windows, macos, sdist]
110
128
steps :
111
- - uses : actions/download-artifact@v3
129
+ - uses : actions/download-artifact@v4
112
130
with :
113
- name : wheels
131
+ pattern : ' wheels-* '
114
132
- name : Publish to PyPI
115
133
uses : PyO3/maturin-action@v1
116
134
env :
0 commit comments