1- # This file is autogenerated by maturin v1.4 .0
2- # To update, run
1+ # This file is autogenerated by maturin v1.9 .0
2+ # To update, run (from sqlshield-py/)
33#
4- # maturin generate-ci github
4+ # maturin generate-ci github -o ../.github/workflows/ci.yml
55#
66name : CI
77
@@ -20,101 +20,171 @@ permissions:
2020
2121jobs :
2222 linux :
23- runs-on : ubuntu-latest
23+ runs-on : ${{ matrix.platform.runner }}
2424 strategy :
2525 matrix :
26- target : [x86_64, x86, aarch64, armv7, s390x, ppc64le]
26+ platform :
27+ - runner : ubuntu-22.04
28+ target : x86_64
29+ - runner : ubuntu-22.04
30+ target : x86
31+ - runner : ubuntu-22.04
32+ target : aarch64
33+ - runner : ubuntu-22.04
34+ target : armv7
35+ - runner : ubuntu-22.04
36+ target : s390x
37+ - runner : ubuntu-22.04
38+ target : ppc64le
2739 steps :
28- - uses : actions/checkout@v3
29- - uses : actions/setup-python@v4
40+ - uses : actions/checkout@v4
41+ - uses : actions/setup-python@v5
3042 with :
31- python-version : ' 3.10 '
43+ python-version : 3.x
3244 - name : Build wheels
3345 uses : PyO3/maturin-action@v1
46+ env :
47+ CFLAGS : " -std=gnu11"
3448 with :
35- target : ${{ matrix.target }}
36- args : --release --out dist --find-interpreter
37- sccache : ' true'
49+ working-directory : sqlshield-py
50+ target : ${{ matrix.platform.target }}
51+ args : --release --out ../dist --find-interpreter
52+ sccache : ${{ !startsWith(github.ref, 'refs/tags/') }}
3853 manylinux : auto
3954 - name : Upload wheels
40- uses : actions/upload-artifact@v3
55+ uses : actions/upload-artifact@v4
56+ with :
57+ name : wheels-linux-${{ matrix.platform.target }}
58+ path : dist
59+
60+ musllinux :
61+ runs-on : ${{ matrix.platform.runner }}
62+ strategy :
63+ matrix :
64+ platform :
65+ - runner : ubuntu-22.04
66+ target : x86_64
67+ - runner : ubuntu-22.04
68+ target : x86
69+ - runner : ubuntu-22.04
70+ target : aarch64
71+ - runner : ubuntu-22.04
72+ target : armv7
73+ steps :
74+ - uses : actions/checkout@v4
75+ - uses : actions/setup-python@v5
76+ with :
77+ python-version : 3.x
78+ - name : Build wheels
79+ uses : PyO3/maturin-action@v1
80+ env :
81+ CFLAGS : " -std=gnu11"
82+ with :
83+ working-directory : sqlshield-py
84+ target : ${{ matrix.platform.target }}
85+ args : --release --out ../dist --find-interpreter
86+ sccache : ${{ !startsWith(github.ref, 'refs/tags/') }}
87+ manylinux : musllinux_1_2
88+ - name : Upload wheels
89+ uses : actions/upload-artifact@v4
4190 with :
42- name : wheels
91+ name : wheels-musllinux-${{ matrix.platform.target }}
4392 path : dist
4493
4594 windows :
46- runs-on : windows-latest
95+ runs-on : ${{ matrix.platform.runner }}
4796 strategy :
4897 matrix :
49- target : [x64, x86]
98+ platform :
99+ - runner : windows-latest
100+ target : x64
101+ - runner : windows-latest
102+ target : x86
50103 steps :
51- - uses : actions/checkout@v3
52- - uses : actions/setup-python@v4
104+ - uses : actions/checkout@v4
105+ - uses : actions/setup-python@v5
53106 with :
54- python-version : ' 3.10 '
55- architecture : ${{ matrix.target }}
107+ python-version : 3.x
108+ architecture : ${{ matrix.platform. target }}
56109 - name : Build wheels
57110 uses : PyO3/maturin-action@v1
58111 with :
59- target : ${{ matrix.target }}
60- args : --release --out dist --find-interpreter
61- sccache : ' true'
112+ working-directory : sqlshield-py
113+ target : ${{ matrix.platform.target }}
114+ args : --release --out ../dist --find-interpreter
115+ sccache : ${{ !startsWith(github.ref, 'refs/tags/') }}
62116 - name : Upload wheels
63- uses : actions/upload-artifact@v3
117+ uses : actions/upload-artifact@v4
64118 with :
65- name : wheels
119+ name : wheels-windows-${{ matrix.platform.target }}
66120 path : dist
67121
68122 macos :
69- runs-on : macos-latest
123+ runs-on : ${{ matrix.platform.runner }}
70124 strategy :
71125 matrix :
72- target : [x86_64, aarch64]
126+ platform :
127+ - runner : macos-13
128+ target : x86_64
129+ - runner : macos-14
130+ target : aarch64
73131 steps :
74- - uses : actions/checkout@v3
75- - uses : actions/setup-python@v4
132+ - uses : actions/checkout@v4
133+ - uses : actions/setup-python@v5
76134 with :
77- python-version : ' 3.10 '
135+ python-version : 3.x
78136 - name : Build wheels
79137 uses : PyO3/maturin-action@v1
80138 with :
81- target : ${{ matrix.target }}
82- args : --release --out dist --find-interpreter
83- sccache : ' true'
139+ working-directory : sqlshield-py
140+ target : ${{ matrix.platform.target }}
141+ args : --release --out ../dist --find-interpreter
142+ sccache : ${{ !startsWith(github.ref, 'refs/tags/') }}
84143 - name : Upload wheels
85- uses : actions/upload-artifact@v3
144+ uses : actions/upload-artifact@v4
86145 with :
87- name : wheels
146+ name : wheels-macos-${{ matrix.platform.target }}
88147 path : dist
89148
90149 sdist :
91150 runs-on : ubuntu-latest
92151 steps :
93- - uses : actions/checkout@v3
152+ - uses : actions/checkout@v4
94153 - name : Build sdist
95154 uses : PyO3/maturin-action@v1
96155 with :
156+ working-directory : sqlshield-py
97157 command : sdist
98- args : --out dist
158+ args : --out ../ dist
99159 - name : Upload sdist
100- uses : actions/upload-artifact@v3
160+ uses : actions/upload-artifact@v4
101161 with :
102- name : wheels
162+ name : wheels-sdist
103163 path : dist
104164
105165 release :
106166 name : Release
107167 runs-on : ubuntu-latest
108- if : " startsWith(github.ref, 'refs/tags/')"
109- needs : [linux, windows, macos, sdist]
168+ if : ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }}
169+ needs : [linux, musllinux, windows, macos, sdist]
170+ permissions :
171+ # Use to sign the release artifacts
172+ id-token : write
173+ # Used to upload release artifacts
174+ contents : write
175+ # Used to generate artifact attestation
176+ attestations : write
110177 steps :
111- - uses : actions/download-artifact@v3
178+ - uses : actions/download-artifact@v4
179+ - name : Generate artifact attestation
180+ uses : actions/attest-build-provenance@v2
112181 with :
113- name : wheels
182+ subject-path : ' wheels-*/* '
114183 - name : Publish to PyPI
184+ if : ${{ startsWith(github.ref, 'refs/tags/') }}
115185 uses : PyO3/maturin-action@v1
116186 env :
117187 MATURIN_PYPI_TOKEN : ${{ secrets.PYPI_API_TOKEN }}
118188 with :
119189 command : upload
120- args : --non-interactive --skip-existing *
190+ args : --non-interactive --skip-existing wheels-*/ *
0 commit comments