Skip to content

Commit 21ad43c

Browse files
committed
Update CI configuration with help of "maturin generate-ci"
Update CI configuration with help of: maturin generate-ci github --zig --pytest --platform manylinux macos > .github/workflows/CI.yml and some manual adaptations.
1 parent 9318a78 commit 21ad43c

File tree

1 file changed

+24
-9
lines changed

1 file changed

+24
-9
lines changed

.github/workflows/CI.yml

Lines changed: 24 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This file is autogenerated by maturin v1.7.4
1+
# This file is autogenerated by maturin v1.8.7
22
# To update, run
33
#
44
# maturin generate-ci github --zig --pytest --platform manylinux macos
@@ -24,9 +24,9 @@ jobs:
2424
strategy:
2525
matrix:
2626
platform:
27-
- runner: ubuntu-latest
27+
- runner: ubuntu-22.04
2828
target: x86_64
29-
- runner: ubuntu-latest
29+
- runner: ubuntu-22.04
3030
target: aarch64
3131
steps:
3232
- uses: actions/checkout@v4
@@ -38,7 +38,14 @@ jobs:
3838
with:
3939
target: ${{ matrix.platform.target }}
4040
args: --release --out dist --zig
41-
sccache: 'false'
41+
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
42+
manylinux: auto
43+
- name: Build free-threaded wheels
44+
uses: PyO3/maturin-action@v1
45+
with:
46+
target: ${{ matrix.platform.target }}
47+
args: --release --out dist --zig -i python3.13t
48+
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
4249
manylinux: auto
4350
- name: Upload wheels
4451
uses: actions/upload-artifact@v4
@@ -76,21 +83,27 @@ jobs:
7683
strategy:
7784
matrix:
7885
platform:
79-
- runner: macos-12
86+
- runner: macos-13
8087
target: x86_64
8188
- runner: macos-14
8289
target: aarch64
8390
steps:
8491
- uses: actions/checkout@v4
8592
- uses: actions/setup-python@v5
8693
with:
87-
python-version: 3.12
94+
python-version: 3.x
8895
- name: Build wheels
8996
uses: PyO3/maturin-action@v1
9097
with:
9198
target: ${{ matrix.platform.target }}
9299
args: --release --out dist
93-
sccache: 'true'
100+
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
101+
- name: Build free-threaded wheels
102+
uses: PyO3/maturin-action@v1
103+
with:
104+
target: ${{ matrix.platform.target }}
105+
args: --release --out dist -i python3.13t
106+
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
94107
- name: Upload wheels
95108
uses: actions/upload-artifact@v4
96109
with:
@@ -136,12 +149,14 @@ jobs:
136149
steps:
137150
- uses: actions/download-artifact@v4
138151
- name: Generate artifact attestation
139-
uses: actions/attest-build-provenance@v1
152+
uses: actions/attest-build-provenance@v2
140153
with:
141154
subject-path: 'wheels-*/*'
142155
- name: Publish to PyPI
143-
if: "startsWith(github.ref, 'refs/tags/')"
156+
if: ${{ startsWith(github.ref, 'refs/tags/') }}
144157
uses: PyO3/maturin-action@v1
158+
#env:
159+
# MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
145160
with:
146161
command: upload
147162
args: --non-interactive --skip-existing wheels-*/*

0 commit comments

Comments
 (0)