Skip to content

Commit 1463938

Browse files
committed
Update workflow
1 parent 2984478 commit 1463938

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

.github/workflows/CI.yml

Lines changed: 19 additions & 19 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.4
22
# To update, run
33
#
44
# maturin generate-ci github
@@ -24,17 +24,17 @@ 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: x86
31-
- runner: ubuntu-latest
31+
- runner: ubuntu-22.04
3232
target: aarch64
33-
- runner: ubuntu-latest
33+
- runner: ubuntu-22.04
3434
target: armv7
35-
- runner: ubuntu-latest
35+
- runner: ubuntu-22.04
3636
target: s390x
37-
- runner: ubuntu-latest
37+
- runner: ubuntu-22.04
3838
target: ppc64le
3939
steps:
4040
- uses: actions/checkout@v4
@@ -46,7 +46,7 @@ jobs:
4646
with:
4747
target: ${{ matrix.platform.target }}
4848
args: --release --out dist --find-interpreter
49-
sccache: 'true'
49+
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
5050
manylinux: auto
5151
- name: Upload wheels
5252
uses: actions/upload-artifact@v4
@@ -59,13 +59,13 @@ jobs:
5959
strategy:
6060
matrix:
6161
platform:
62-
- runner: ubuntu-latest
62+
- runner: ubuntu-22.04
6363
target: x86_64
64-
- runner: ubuntu-latest
64+
- runner: ubuntu-22.04
6565
target: x86
66-
- runner: ubuntu-latest
66+
- runner: ubuntu-22.04
6767
target: aarch64
68-
- runner: ubuntu-latest
68+
- runner: ubuntu-22.04
6969
target: armv7
7070
steps:
7171
- uses: actions/checkout@v4
@@ -77,7 +77,7 @@ jobs:
7777
with:
7878
target: ${{ matrix.platform.target }}
7979
args: --release --out dist --find-interpreter
80-
sccache: 'true'
80+
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
8181
manylinux: musllinux_1_2
8282
- name: Upload wheels
8383
uses: actions/upload-artifact@v4
@@ -105,7 +105,7 @@ jobs:
105105
with:
106106
target: ${{ matrix.platform.target }}
107107
args: --release --out dist --find-interpreter
108-
sccache: 'true'
108+
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
109109
- name: Upload wheels
110110
uses: actions/upload-artifact@v4
111111
with:
@@ -117,7 +117,7 @@ jobs:
117117
strategy:
118118
matrix:
119119
platform:
120-
- runner: macos-12
120+
- runner: macos-13
121121
target: x86_64
122122
- runner: macos-14
123123
target: aarch64
@@ -131,7 +131,7 @@ jobs:
131131
with:
132132
target: ${{ matrix.platform.target }}
133133
args: --release --out dist --find-interpreter
134-
sccache: 'true'
134+
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
135135
- name: Upload wheels
136136
uses: actions/upload-artifact@v4
137137
with:
@@ -168,14 +168,14 @@ jobs:
168168
steps:
169169
- uses: actions/download-artifact@v4
170170
- name: Generate artifact attestation
171-
uses: actions/attest-build-provenance@v1
171+
uses: actions/attest-build-provenance@v2
172172
with:
173173
subject-path: 'wheels-*/*'
174174
- name: Publish to PyPI
175-
if: "startsWith(github.ref, 'refs/tags/')"
175+
if: ${{ startsWith(github.ref, 'refs/tags/') }}
176176
uses: PyO3/maturin-action@v1
177177
env:
178178
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
179179
with:
180180
command: upload
181-
args: --non-interactive --skip-existing wheels-*/*
181+
args: --non-interactive --skip-existing wheels-*/*

0 commit comments

Comments
 (0)