Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 30 additions & 1 deletion .github/workflows/build-and-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,35 @@ jobs:
name: wheels_arm64
path: ./wheelhouse/*.whl

build_wheels_riscv64:
name: Build riscv64 wheels
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: "recursive"

- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
platforms: linux/riscv64

- name: Build wheels
uses: pypa/cibuildwheel@v3.1.2
env:
CIBW_SKIP: "*musllinux* pp*"
CIBW_REPAIR_WHEEL_COMMAND: ""
CIBW_ARCHS: "riscv64"
CIBW_BUILD: "cp310-* cp311-* cp312-* cp313-* cp314-*"
with:
output-dir: wheelhouse

- name: Upload wheels as artifacts
uses: actions/upload-artifact@v4
with:
name: wheels_riscv64
path: ./wheelhouse/*.whl

build_sdist:
name: Build source distribution
runs-on: ubuntu-latest
Expand Down Expand Up @@ -129,7 +158,7 @@ jobs:

release:
name: Release
needs: [build_wheels, build_wheels_arm64, build_sdist]
needs: [build_wheels, build_wheels_arm64, build_wheels_riscv64, build_sdist]
runs-on: ubuntu-latest

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

## [0.3.16]

Expand Down
Loading