Skip to content

Commit b243443

Browse files
aseyboldtlucianopaz
authored andcommitted
ci: make sure all python versions are available in the builds
1 parent 4430607 commit b243443

File tree

1 file changed

+30
-11
lines changed

1 file changed

+30
-11
lines changed

.github/workflows/ci.yml

Lines changed: 30 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
# This file is autogenerated by maturin v1.8.2
2-
# To update, run
3-
#
4-
# maturin generate-ci --pytest --platform all --zig github
5-
#
61
name: CI
72

83
on:
@@ -31,16 +26,32 @@ jobs:
3126
target: aarch64
3227
steps:
3328
- uses: actions/checkout@v4
34-
- uses: actions/setup-python@v5
35-
with:
36-
python-version: "3.12"
3729
- name: Install uv
3830
uses: astral-sh/setup-uv@v5
31+
- uses: actions/setup-python@v5
32+
with:
33+
python-version: |
34+
3.10
35+
3.11
36+
3.12
37+
3.13
38+
# Leave out 3.13 on aarch due to an issue in pyo3/rust-numpy 0.23.4
39+
- name: Build wheels
40+
uses: PyO3/maturin-action@v1
41+
if: ${{ matrix.platform.target == 'aarch64' }}
42+
with:
43+
target: ${{ matrix.platform.target }}
44+
args: --release --out dist --interpreter 3.10 3.11 3.12 --zig
45+
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
46+
manylinux: auto
47+
before-script-linux: |
48+
dnf install -y clang-libs clang || sudo apt install llvm-dev libclang-dev clang
3949
- name: Build wheels
4050
uses: PyO3/maturin-action@v1
51+
if: ${{ matrix.platform.target == 'x86_64' }}
4152
with:
4253
target: ${{ matrix.platform.target }}
43-
args: --release --out dist --find-interpreter --zig
54+
args: --release --out dist --interpreter 3.10 3.11 3.12 3.13 --zig
4455
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
4556
manylinux: auto
4657
before-script-linux: |
@@ -160,7 +171,11 @@ jobs:
160171
- uses: actions/checkout@v4
161172
- uses: actions/setup-python@v5
162173
with:
163-
python-version: "3.12"
174+
python-version: |
175+
3.10
176+
3.11
177+
3.12
178+
# 3.13 leave out 3.13 due to a segfault
164179
architecture: ${{ matrix.platform.target }}
165180
- name: Install uv
166181
uses: astral-sh/setup-uv@v5
@@ -211,7 +226,11 @@ jobs:
211226
- uses: actions/checkout@v4
212227
- uses: actions/setup-python@v5
213228
with:
214-
python-version: "3.12"
229+
python-version: |
230+
3.10
231+
3.11
232+
3.12
233+
3.13
215234
- name: Install uv
216235
uses: astral-sh/setup-uv@v5
217236
- uses: maxim-lobanov/setup-xcode@v1

0 commit comments

Comments
 (0)