1
- # This file is autogenerated by maturin v1.5.1
2
- # To update, run
3
- #
4
- # maturin generate-ci github
5
- #
6
1
name : CI
7
2
8
3
on :
32
27
target : aarch64
33
28
- runner : ubuntu-latest
34
29
target : armv7
35
- - runner : ubuntu-latest
36
- target : s390x
37
30
- runner : ubuntu-latest
38
31
target : ppc64le
39
32
steps :
@@ -55,20 +48,27 @@ jobs:
55
48
path : dist
56
49
57
50
windows :
58
- runs-on : ${{ matrix.platform.runner }}
51
+ runs-on : windows-latest
59
52
strategy :
60
53
matrix :
61
54
platform :
62
- - runner : windows-latest
63
- target : x64
64
- - runner : windows-latest
65
- target : x86
55
+ - target : x64
56
+ - target : x86
66
57
steps :
67
58
- uses : actions/checkout@v4
68
59
- uses : actions/setup-python@v5
69
60
with :
70
61
python-version : ' 3.10'
71
62
architecture : ${{ matrix.platform.target }}
63
+ - name : Install MSVC Build Tools
64
+ run : |
65
+ choco install visualstudio2019buildtools --package-parameters "--add Microsoft.VisualStudio.Workload.VCTools --includeRecommended --includeOptional"
66
+ choco install python --version 3.10
67
+ python -m pip install --upgrade pip
68
+ - name : Set up MSVC environment
69
+ shell : cmd
70
+ run : |
71
+ call "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Auxiliary\Build\vcvars64.bat"
72
72
- name : Build wheels
73
73
uses : PyO3/maturin-action@v1
74
74
with :
@@ -129,10 +129,18 @@ jobs:
129
129
needs : [linux, windows, macos, sdist]
130
130
steps :
131
131
- uses : actions/download-artifact@v4
132
+ with :
133
+ name : wheels-linux-x86_64
134
+ - uses : actions/download-artifact@v4
135
+ with :
136
+ name : wheels-windows-x64
137
+ - uses : actions/download-artifact@v4
138
+ with :
139
+ name : wheels-macos-x86_64
132
140
- name : Publish to PyPI
133
141
uses : PyO3/maturin-action@v1
134
142
env :
135
- MATURIN_PYPI_TOKEN : ${{ secrets.PYPI_PASSWORD }}
143
+ MATURIN_PYPI_TOKEN : ${{ secrets.PYPI_API_TOKEN }}
136
144
with :
137
145
command : upload
138
146
args : --non-interactive --skip-existing wheels-*/*
0 commit comments