Skip to content

Commit 29adc82

Browse files
committed
update CI.yml
1 parent 8c3b638 commit 29adc82

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

.github/workflows/CI.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This file is autogenerated by maturin v1.7.5
1+
# This file is autogenerated by maturin v1.9.4
22
# To update, run
33
#
44
# maturin generate-ci github --pytest
@@ -38,15 +38,15 @@ jobs:
3838
target: ppc64le
3939
steps:
4040
- uses: actions/checkout@v5
41-
- uses: actions/setup-python@v5
41+
- uses: actions/setup-python@v6
4242
with:
4343
python-version: 3.x
4444
- name: Build wheels
4545
uses: PyO3/maturin-action@v1
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
@@ -94,15 +94,15 @@ jobs:
9494
target: armv7
9595
steps:
9696
- uses: actions/checkout@v5
97-
- uses: actions/setup-python@v5
97+
- uses: actions/setup-python@v6
9898
with:
9999
python-version: 3.x
100100
- name: Build wheels
101101
uses: PyO3/maturin-action@v1
102102
with:
103103
target: ${{ matrix.platform.target }}
104104
args: --release --out dist --find-interpreter
105-
sccache: 'true'
105+
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
106106
manylinux: musllinux_1_2
107107
- name: Upload wheels
108108
uses: actions/upload-artifact@v4
@@ -151,7 +151,7 @@ jobs:
151151
target: x86
152152
steps:
153153
- uses: actions/checkout@v5
154-
- uses: actions/setup-python@v5
154+
- uses: actions/setup-python@v6
155155
with:
156156
python-version: 3.x
157157
architecture: ${{ matrix.platform.target }}
@@ -160,7 +160,7 @@ jobs:
160160
with:
161161
target: ${{ matrix.platform.target }}
162162
args: --release --out dist --find-interpreter
163-
sccache: 'true'
163+
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
164164
- name: Upload wheels
165165
uses: actions/upload-artifact@v4
166166
with:
@@ -188,15 +188,15 @@ jobs:
188188
target: aarch64
189189
steps:
190190
- uses: actions/checkout@v5
191-
- uses: actions/setup-python@v5
191+
- uses: actions/setup-python@v6
192192
with:
193193
python-version: 3.x
194194
- name: Build wheels
195195
uses: PyO3/maturin-action@v1
196196
with:
197197
target: ${{ matrix.platform.target }}
198198
args: --release --out dist --find-interpreter
199-
sccache: 'true'
199+
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
200200
- name: Upload wheels
201201
uses: actions/upload-artifact@v4
202202
with:
@@ -245,7 +245,7 @@ jobs:
245245
with:
246246
subject-path: 'wheels-*/*'
247247
- name: Publish to PyPI
248-
if: startsWith(github.ref, 'refs/tags/')
248+
if: ${{ startsWith(github.ref, 'refs/tags/') }}
249249
uses: PyO3/maturin-action@v1
250250
env:
251251
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)