Skip to content

Commit e1f8ac0

Browse files
gountharabetlen
andauthored
ci: add riscv64 wheel builds to release workflow (abetlen#2139)
* 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 abetlen#2138 * ci: use cibuildwheel 3.1.2 for riscv64 wheels * docs: update changelog for riscv64 wheel PR --------- Co-authored-by: abetlen <abetlen@gmail.com>
1 parent 18aa31e commit e1f8ac0

File tree

2 files changed

+31
-1
lines changed

2 files changed

+31
-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@v3.1.2
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:

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111
- chore(dev): Add Ruff-based formatting and a safe lint baseline, and run it in CI for pull requests and pushes to `main`
1212
- fix(ci): Run macOS CI on supported Apple Silicon and Intel runners by @abetlen in #2150
1313
- fix(ci): Use the `hf` CLI instead of the deprecated `huggingface-cli` name in GitHub Actions and docs by @abetlen in #2149
14+
- ci: add riscv64 wheel builds to release workflow by @gounthar in #2139
1415

1516
## [0.3.16]
1617

0 commit comments

Comments
 (0)