ci: add riscv64 wheel builds via QEMU (#13183)

Signed-off-by: Bruno Verachten <gounthar@gmail.com>
This commit is contained in:
Bruno Verachten
2026-03-18 20:49:31 +01:00
committed by GitHub
parent 4840e6a206
commit 11a2e63fa2
2 changed files with 16 additions and 1 deletions
+15
View File
@@ -35,6 +35,7 @@ jobs:
# this is only meaningful on linux. windows and macos ignore exclude all but one arch
- "aarch64"
- "x86_64"
- "riscv64"
include:
# create pure python build
@@ -54,12 +55,26 @@ jobs:
linux_archs: "aarch64"
- os: "ubuntu-22.04-arm"
linux_archs: "x86_64"
- os: "windows-2022"
linux_archs: "riscv64"
- os: "windows-11-arm"
linux_archs: "riscv64"
- os: "macos-15"
linux_archs: "riscv64"
- os: "ubuntu-22.04-arm"
linux_archs: "riscv64"
fail-fast: false
steps:
- uses: actions/checkout@v4
- name: Set up QEMU
if: matrix.linux_archs == 'riscv64'
uses: docker/setup-qemu-action@v3
with:
platforms: riscv64
- name: Remove tag-build from pyproject.toml
# sqlalchemy has `tag-build` set to `dev` in pyproject.toml. It needs to be removed before creating the wheel
# otherwise it gets tagged with `dev0`
+1 -1
View File
@@ -364,4 +364,4 @@ archs = ["arm64"]
# On an Linux Intel runner with qemu installed, build Intel and ARM wheels
# NOTE: this is overridden in the pipeline using the CIBW_ARCHS_LINUX env variable to speed up the build
[tool.cibuildwheel.linux]
archs = ["x86_64", "aarch64"]
archs = ["x86_64", "aarch64", "riscv64"]