Skip to content

Commit 05c827a

Browse files
committed
ci: build 3.10 specific wheels
Buffer protocol doesn't exist in 3.10, or something. I don't understand it, I just do it :-).
1 parent c294192 commit 05c827a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/pypi.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ jobs:
1919
runs-on: ubuntu-22.04
2020
strategy:
2121
matrix:
22+
maturin-args: ["-i 3.10", "-i 3.11 -F pyo3/abi3-py311"]
2223
platform:
2324
- target: x86_64
2425
manylinux: auto
@@ -29,13 +30,13 @@ jobs:
2930
steps:
3031
- uses: actions/checkout@v4
3132
- uses: astral-sh/setup-uv@v5
32-
- name: Install Pythons
33+
- name: Install Python
3334
run: uv python install 3.10
3435
- name: Build wheels
3536
uses: PyO3/maturin-action@v1
3637
with:
3738
target: ${{ matrix.platform.target }}
38-
args: --release --out dist -i 3.10 --auditwheel repair
39+
args: --release --out dist ${{ matrix.maturin-args }} --auditwheel repair
3940
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
4041
manylinux: ${{ matrix.platform.manylinux }}
4142
before-script-linux: |
@@ -60,6 +61,7 @@ jobs:
6061
runs-on: ${{ matrix.platform.runner }}
6162
strategy:
6263
matrix:
64+
maturin-args: ["-i 3.10", "-i 3.11 -F pyo3/abi3-py311"]
6365
platform:
6466
- runner: macos-13
6567
target: x86_64
@@ -87,7 +89,7 @@ jobs:
8789
DUCKDB_LIB_DIR: ${{ github.workspace }}/opt/duckdb
8890
with:
8991
target: ${{ matrix.platform.target }}
90-
args: --release --out dist -i 3.10
92+
args: --release --out dist ${{ matrix.maturin-args }}
9193
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
9294
- name: Repair wheel
9395
run: .venv/bin/delocate-wheel -v dist/*.whl

0 commit comments

Comments
 (0)