Skip to content

Commit ce025ea

Browse files
committed
ci: cleanup supported versions
- support 3.9 to 3.13 for cpython (3.8 has been EOL since 2024) - support 3.10 pypy (only versions supported in pypy v7.3.19 and pyo3 0.22.6) - re-enable musl builds
1 parent e120ebe commit ce025ea

2 files changed

Lines changed: 37 additions & 40 deletions

File tree

.github/workflows/distribute.yml

Lines changed: 35 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ on:
1313
- '*'
1414

1515
env:
16-
UNIX_PYTHON_VERSIONS: 3.7 3.8 3.9 3.10 3.11 3.12 3.13 pypy3.7 pypy3.8 pypy3.9 pypy3.10
17-
WINDOWS_PYTHON_VERSIONS: 3.8 3.9 3.10 3.11 3.12
16+
UNIX_PYTHON_VERSIONS: 3.9 3.10 3.11 3.12 3.13 pypy3.10
17+
WINDOWS_PYTHON_VERSIONS: 3.9 3.10 3.11 3.12 3.13
1818

1919
permissions:
2020
contents: read
@@ -29,7 +29,7 @@ jobs:
2929
- uses: actions/checkout@v3
3030
- uses: actions/setup-python@v4
3131
with:
32-
python-version: '3.10'
32+
python-version: '3.13'
3333
- name: Build wheels
3434
uses: PyO3/maturin-action@v1
3535
with:
@@ -43,39 +43,36 @@ jobs:
4343
name: wheels-linux-${{ matrix.target }}
4444
path: dist
4545

46-
# linux-musl:
47-
# runs-on: ubuntu-latest
48-
# strategy:
49-
# matrix:
50-
# platform: [
51-
# { target: "x86_64-unknown-linux-musl", image_tag: "x86_64-musl" },
52-
# { target: "i686-unknown-linux-musl", image_tag: "i686-musl" },
53-
# { target: "aarch64-unknown-linux-musl", image_tag: "aarch64-musl" },
54-
# { target: "armv7-unknown-linux-musleabihf", image_tag: "armv7-musleabihf" },
55-
# { target: "powerpc64le-unknown-linux-musl", image_tag: "powerpc64le-musl" },
56-
# ]
57-
# container:
58-
# image: docker://messense/rust-musl-cross:${{ matrix.platform.image_tag }}
59-
# env:
60-
# CFLAGS_armv7_unknown_linux_musleabihf: '-mfpu=vfpv3-d16'
61-
# steps:
62-
# - uses: actions/checkout@v3
63-
# - uses: actions/setup-python@v4
64-
# with:
65-
# python-version: '3.10'
66-
# - name: Build wheels - linux-musl
67-
# uses: PyO3/maturin-action@v1
68-
# with:
69-
# target: ${{ matrix.platform.target }}
70-
# args: --release --out dist --interpreter ${{ env.UNIX_PYTHON_VERSIONS }}
71-
# sccache: 'true'
72-
# manylinux: musllinux_1_1
73-
# container: off
74-
# - name: Upload wheels
75-
# uses: actions/upload-artifact@v4
76-
# with:
77-
# name: wheels-musl-${{ matrix.target }}
78-
# path: dist
46+
linux-musl:
47+
runs-on: ubuntu-latest
48+
strategy:
49+
matrix:
50+
platform: [
51+
{ target: "x86_64-unknown-linux-musl", image_tag: "x86_64-musl" },
52+
{ target: "i686-unknown-linux-musl", image_tag: "i686-musl" },
53+
{ target: "aarch64-unknown-linux-musl", image_tag: "aarch64-musl" },
54+
{ target: "armv7-unknown-linux-musleabihf", image_tag: "armv7-musleabihf" },
55+
{ target: "powerpc64le-unknown-linux-musl", image_tag: "powerpc64le-musl" },
56+
]
57+
container:
58+
image: docker://messense/rust-musl-cross:${{ matrix.platform.image_tag }}
59+
env:
60+
CFLAGS_armv7_unknown_linux_musleabihf: '-mfpu=vfpv3-d16'
61+
steps:
62+
- uses: actions/checkout@v3
63+
- name: Build wheels - linux-musl
64+
uses: PyO3/maturin-action@v1
65+
with:
66+
target: ${{ matrix.platform.target }}
67+
args: --release --out dist --interpreter ${{ env.UNIX_PYTHON_VERSIONS }}
68+
sccache: 'true'
69+
manylinux: musllinux_1_1
70+
container: off
71+
- name: Upload wheels
72+
uses: actions/upload-artifact@v4
73+
with:
74+
name: wheels-musl-${{ matrix.target }}
75+
path: dist
7976

8077
windows:
8178
runs-on: windows-latest
@@ -86,7 +83,7 @@ jobs:
8683
- uses: actions/checkout@v3
8784
- uses: actions/setup-python@v4
8885
with:
89-
python-version: '3.10'
86+
python-version: '3.13'
9087
architecture: ${{ matrix.target }}
9188
- name: Build wheels
9289
uses: PyO3/maturin-action@v1
@@ -109,7 +106,7 @@ jobs:
109106
- uses: actions/checkout@v3
110107
- uses: actions/setup-python@v4
111108
with:
112-
python-version: '3.10'
109+
python-version: '3.13'
113110
- name: Build wheels
114111
uses: PyO3/maturin-action@v1
115112
with:

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ on:
1010
branches: [ "main" ]
1111

1212
env:
13-
UNIX_PYTHON_VERSIONS: 3.7 3.8 3.9 3.10 3.11 3.12 3.13 pypy3.7 pypy3.8 pypy3.9 pypy3.10
14-
WINDOWS_PYTHON_VERSIONS: 3.8 3.9 3.10 3.11 3.12
13+
UNIX_PYTHON_VERSIONS: 3.9 3.10 3.11 3.12 3.13 pypy3.10
14+
WINDOWS_PYTHON_VERSIONS: 3.9 3.10 3.11 3.12 3.13
1515

1616
permissions:
1717
contents: read

0 commit comments

Comments
 (0)