Skip to content

Commit 928c2e2

Browse files
committed
ci: add more wheels
1 parent 097a627 commit 928c2e2

File tree

1 file changed

+37
-2
lines changed

1 file changed

+37
-2
lines changed

.github/workflows/pypi.yaml

Lines changed: 37 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,23 @@ concurrency:
1414
cancel-in-progress: false
1515

1616
jobs:
17-
# TODO add bundled builds for platforms where we don't have pre-built libraries
1817
linux:
19-
runs-on: ubuntu-22.04
18+
runs-on: ubuntu-latest
2019
strategy:
2120
matrix:
2221
platform:
2322
- target: x86_64
2423
manylinux: auto
24+
- target: x86
25+
manylinux: auto
2526
- target: aarch64
2627
manylinux: "2_28"
28+
- target: armv7
29+
manylinux: auto
30+
- target: s390x
31+
manylinux: auto
32+
- target: ppc64le
33+
manylinux: auto
2734
steps:
2835
- uses: actions/checkout@v4
2936
- uses: astral-sh/setup-uv@v5
@@ -42,6 +49,33 @@ jobs:
4249
name: wheels-linux-${{ matrix.platform.target }}
4350
path: dist
4451

52+
musllinux:
53+
runs-on: ubuntu-latest
54+
strategy:
55+
matrix:
56+
platform:
57+
- target: x86_64
58+
- target: x86
59+
- target: aarch64
60+
- target: armv7
61+
steps:
62+
- uses: actions/checkout@v4
63+
- uses: astral-sh/setup-uv@v5
64+
- name: Install Python
65+
run: uv python install 3.11
66+
- name: Build wheels
67+
uses: PyO3/maturin-action@v1
68+
with:
69+
target: ${{ matrix.platform.target }}
70+
args: --release --out dist -i 3.11 -F pyo3/abi3-py311 -F duckdb-bundled
71+
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
72+
manylinux: mussllinux_1_2
73+
- name: Upload wheels
74+
uses: actions/upload-artifact@v4
75+
with:
76+
name: wheels-musllinux-${{ matrix.platform.target }}
77+
path: dist
78+
4579
macos:
4680
runs-on: ${{ matrix.platform.runner }}
4781
strategy:
@@ -90,6 +124,7 @@ jobs:
90124
needs:
91125
- sdist
92126
- linux
127+
- musllinux
93128
- macos
94129
environment:
95130
name: pypi

0 commit comments

Comments
 (0)