Skip to content

Commit 0251850

Browse files
committed
ci: add riscv64 wheel builds to release workflow
Add a build_wheels_riscv64 job mirroring the existing arm64 QEMU-based build. Uses cibuildwheel with QEMU emulation for linux/riscv64, targeting CPython 3.10-3.14 on manylinux. Closes #2138
1 parent c37132b commit 0251850

File tree

1 file changed

+30
-1
lines changed

1 file changed

+30
-1
lines changed

.github/workflows/build-and-release.yaml

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,35 @@ jobs:
8585
name: wheels_arm64
8686
path: ./wheelhouse/*.whl
8787

88+
build_wheels_riscv64:
89+
name: Build riscv64 wheels
90+
runs-on: ubuntu-latest
91+
steps:
92+
- uses: actions/checkout@v4
93+
with:
94+
submodules: "recursive"
95+
96+
- name: Set up QEMU
97+
uses: docker/setup-qemu-action@v3
98+
with:
99+
platforms: linux/riscv64
100+
101+
- name: Build wheels
102+
uses: pypa/cibuildwheel@v2.22.0
103+
env:
104+
CIBW_SKIP: "*musllinux* pp*"
105+
CIBW_REPAIR_WHEEL_COMMAND: ""
106+
CIBW_ARCHS: "riscv64"
107+
CIBW_BUILD: "cp310-* cp311-* cp312-* cp313-* cp314-*"
108+
with:
109+
output-dir: wheelhouse
110+
111+
- name: Upload wheels as artifacts
112+
uses: actions/upload-artifact@v4
113+
with:
114+
name: wheels_riscv64
115+
path: ./wheelhouse/*.whl
116+
88117
build_sdist:
89118
name: Build source distribution
90119
runs-on: ubuntu-latest
@@ -129,7 +158,7 @@ jobs:
129158

130159
release:
131160
name: Release
132-
needs: [build_wheels, build_wheels_arm64, build_sdist]
161+
needs: [build_wheels, build_wheels_arm64, build_wheels_riscv64, build_sdist]
133162
runs-on: ubuntu-latest
134163

135164
steps:

0 commit comments

Comments
 (0)