Skip to content

Commit 37cb423

Browse files
authored
Merge pull request #56 from wiktor-k/wiktor-k/update-ci
Update CI and build scripts
2 parents ba6f94b + d9109a6 commit 37cb423

File tree

10 files changed

+331
-465
lines changed

10 files changed

+331
-465
lines changed

.github/workflows/maturin.yml

Lines changed: 29 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -32,19 +32,19 @@ jobs:
3232
- runner: ubuntu-22.04
3333
target: ppc64le
3434
steps:
35-
- uses: actions/checkout@v4
36-
- uses: actions/setup-python@v5
35+
- uses: actions/checkout@v6
36+
- uses: actions/setup-python@v6
3737
with:
3838
python-version: 3.x
3939
- name: Build wheels
4040
uses: PyO3/maturin-action@v1
4141
with:
4242
target: ${{ matrix.platform.target }}
4343
args: --release --out dist --find-interpreter
44-
sccache: 'true'
44+
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
4545
manylinux: auto
4646
- name: Upload wheels
47-
uses: actions/upload-artifact@v4
47+
uses: actions/upload-artifact@v5
4848
with:
4949
name: wheels-linux-${{ matrix.platform.target }}
5050
path: dist
@@ -63,19 +63,19 @@ jobs:
6363
- runner: ubuntu-22.04
6464
target: armv7
6565
steps:
66-
- uses: actions/checkout@v4
67-
- uses: actions/setup-python@v5
66+
- uses: actions/checkout@v6
67+
- uses: actions/setup-python@v6
6868
with:
6969
python-version: 3.x
7070
- name: Build wheels
7171
uses: PyO3/maturin-action@v1
7272
with:
7373
target: ${{ matrix.platform.target }}
7474
args: --release --out dist --find-interpreter
75-
sccache: 'true'
75+
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
7676
manylinux: musllinux_1_2
7777
- name: Upload wheels
78-
uses: actions/upload-artifact@v4
78+
uses: actions/upload-artifact@v5
7979
with:
8080
name: wheels-musllinux-${{ matrix.platform.target }}
8181
path: dist
@@ -87,22 +87,27 @@ jobs:
8787
platform:
8888
- runner: windows-latest
8989
target: x64
90+
python_arch: x64
9091
- runner: windows-latest
9192
target: x86
93+
python_arch: x86
94+
- runner: windows-11-arm
95+
target: aarch64
96+
python_arch: arm64
9297
steps:
93-
- uses: actions/checkout@v4
94-
- uses: actions/setup-python@v5
98+
- uses: actions/checkout@v6
99+
- uses: actions/setup-python@v6
95100
with:
96-
python-version: 3.x
97-
architecture: ${{ matrix.platform.target }}
101+
python-version: 3.13
102+
architecture: ${{ matrix.platform.python_arch }}
98103
- name: Build wheels
99104
uses: PyO3/maturin-action@v1
100105
with:
101106
target: ${{ matrix.platform.target }}
102107
args: --release --out dist --find-interpreter
103-
sccache: 'true'
108+
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
104109
- name: Upload wheels
105-
uses: actions/upload-artifact@v4
110+
uses: actions/upload-artifact@v5
106111
with:
107112
name: wheels-windows-${{ matrix.platform.target }}
108113
path: dist
@@ -112,38 +117,38 @@ jobs:
112117
strategy:
113118
matrix:
114119
platform:
115-
- runner: macos-13
120+
- runner: macos-15-intel
116121
target: x86_64
117-
- runner: macos-14
122+
- runner: macos-latest
118123
target: aarch64
119124
steps:
120-
- uses: actions/checkout@v4
121-
- uses: actions/setup-python@v5
125+
- uses: actions/checkout@v6
126+
- uses: actions/setup-python@v6
122127
with:
123128
python-version: 3.x
124129
- name: Build wheels
125130
uses: PyO3/maturin-action@v1
126131
with:
127132
target: ${{ matrix.platform.target }}
128133
args: --release --out dist --find-interpreter
129-
sccache: 'true'
134+
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
130135
- name: Upload wheels
131-
uses: actions/upload-artifact@v4
136+
uses: actions/upload-artifact@v5
132137
with:
133138
name: wheels-macos-${{ matrix.platform.target }}
134139
path: dist
135140

136141
sdist:
137142
runs-on: ubuntu-latest
138143
steps:
139-
- uses: actions/checkout@v4
144+
- uses: actions/checkout@v6
140145
- name: Build sdist
141146
uses: PyO3/maturin-action@v1
142147
with:
143148
command: sdist
144149
args: --out dist
145150
- name: Upload sdist
146-
uses: actions/upload-artifact@v4
151+
uses: actions/upload-artifact@v5
147152
with:
148153
name: wheels-sdist
149154
path: dist
@@ -162,9 +167,9 @@ jobs:
162167
# Used to generate artifact attestation
163168
attestations: write
164169
steps:
165-
- uses: actions/download-artifact@v4
170+
- uses: actions/download-artifact@v6
166171
- name: Generate artifact attestation
167-
uses: actions/attest-build-provenance@v1
172+
uses: actions/attest-build-provenance@v3
168173
with:
169174
subject-path: 'wheels-*/*'
170175
- name: Publish to PyPI

0 commit comments

Comments
 (0)