Skip to content

Commit 0a9626d

Browse files
Update ci
1 parent a03e675 commit 0a9626d

File tree

1 file changed

+25
-13
lines changed

1 file changed

+25
-13
lines changed

.github/workflows/CI.yml

+25-13
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This file is autogenerated by maturin v1.6.0
1+
# This file is autogenerated by maturin v1.8.1
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
@@ -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
@@ -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
@@ -156,11 +156,23 @@ jobs:
156156
release:
157157
name: Release
158158
runs-on: ubuntu-latest
159-
if: "startsWith(github.ref, 'refs/tags/')"
159+
if: ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }}
160160
needs: [linux, musllinux, windows, macos, sdist]
161+
permissions:
162+
# Use to sign the release artifacts
163+
id-token: write
164+
# Used to upload release artifacts
165+
contents: write
166+
# Used to generate artifact attestation
167+
attestations: write
161168
steps:
162169
- uses: actions/download-artifact@v4
170+
- name: Generate artifact attestation
171+
uses: actions/attest-build-provenance@v1
172+
with:
173+
subject-path: 'wheels-*/*'
163174
- name: Publish to PyPI
175+
if: ${{ startsWith(github.ref, 'refs/tags/') }}
164176
uses: PyO3/maturin-action@v1
165177
env:
166178
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)