Skip to content

Commit ef89625

Browse files
bump PyO3/maturin-action to 1.49.3 and add zig to linux builds (#166)
1 parent 8ce8b24 commit ef89625

File tree

4 files changed

+34
-13
lines changed

4 files changed

+34
-13
lines changed

.github/workflows/build.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ jobs:
3939
python-version: 3.x
4040

4141
- name: Build wheels
42-
uses: PyO3/maturin-action@35be3186fc8e037e329f06b68dcd807d83dcc6dc # v1.49.2
42+
uses: PyO3/maturin-action@e10f6c464b90acceb5f640d31beda6d586ba7b4a
4343
with:
4444
target: ${{ matrix.platform.target }}
45-
args: --release --out dist --find-interpreter --features extension-module
46-
sccache: "true"
45+
args: --release --out dist --find-interpreter --features extension-module --zig
46+
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
4747
manylinux: auto
4848

4949
- name: Upload wheels
@@ -75,10 +75,11 @@ jobs:
7575
python-version: 3.x
7676

7777
- name: Build wheels
78-
uses: PyO3/maturin-action@35be3186fc8e037e329f06b68dcd807d83dcc6dc # v1.49.2
78+
uses: PyO3/maturin-action@e10f6c464b90acceb5f640d31beda6d586ba7b4a
7979
with:
8080
target: ${{ matrix.platform.target }}
8181
args: --release --out dist --find-interpreter --features extension-module
82+
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
8283
manylinux: musllinux_1_2
8384

8485
- name: Upload wheels
@@ -107,11 +108,11 @@ jobs:
107108
architecture: ${{ matrix.platform.target }}
108109

109110
- name: Build wheels
110-
uses: PyO3/maturin-action@35be3186fc8e037e329f06b68dcd807d83dcc6dc # v1.49.2
111+
uses: PyO3/maturin-action@e10f6c464b90acceb5f640d31beda6d586ba7b4a
111112
with:
112113
target: ${{ matrix.platform.target }}
113114
args: --release --out dist --find-interpreter --features extension-module
114-
sccache: "true"
115+
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
115116

116117
- name: Upload wheels
117118
uses: actions/upload-artifact@v4
@@ -138,11 +139,11 @@ jobs:
138139
python-version: 3.x
139140

140141
- name: Build wheels
141-
uses: PyO3/maturin-action@35be3186fc8e037e329f06b68dcd807d83dcc6dc # v1.49.2
142+
uses: PyO3/maturin-action@e10f6c464b90acceb5f640d31beda6d586ba7b4a
142143
with:
143144
target: ${{ matrix.platform.target }}
144145
args: --release --out dist --find-interpreter --features extension-module
145-
sccache: "true"
146+
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
146147

147148
- name: Upload wheels
148149
uses: actions/upload-artifact@v4
@@ -158,7 +159,7 @@ jobs:
158159
persist-credentials: false
159160

160161
- name: Build sdist
161-
uses: PyO3/maturin-action@35be3186fc8e037e329f06b68dcd807d83dcc6dc # v1.49.2
162+
uses: PyO3/maturin-action@e10f6c464b90acceb5f640d31beda6d586ba7b4a
162163
with:
163164
command: sdist
164165
args: --out dist

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
subject-path: "wheels-*/*"
5151

5252
- name: Publish to PyPI
53-
uses: PyO3/maturin-action@35be3186fc8e037e329f06b68dcd807d83dcc6dc # v1.49.2
53+
uses: PyO3/maturin-action@e10f6c464b90acceb5f640d31beda6d586ba7b4a
5454
with:
5555
command: upload
5656
args: --non-interactive --skip-existing wheels-*/*

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ dev = [
77
"bumpver>=2024.1130",
88
"cogapp>=3.4.1",
99
"django-stubs>=5.1.1",
10-
"maturin>=1.7.8",
10+
"maturin[zig]>=1.7.8",
1111
"nox>=2025.5.1",
1212
"ruff>=0.8.2",
1313
]

uv.lock

Lines changed: 22 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)