-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Description
Problem
mdBook has no CI coverage for riscv64 and no pre-built riscv64 binaries in releases. The CI already cross-builds for aarch64-unknown-linux-musl; riscv64 is a natural extension. Users on riscv64 hardware (SBCs, cloud instances, RISC-V workstations) currently build from source without CI validation.
Proposed Solution
Two additions:
-
CI (
main.yml): add ariscv64gc-unknown-linux-gnucross-build job (similar to the existingaarch64-cross-buildsjob), or use native RISE riscv64 runners (ubuntu-24.04-riscv) for build + test. -
Release (
deploy.yml): addriscv64gc-unknown-linux-musl(or gnu) to the matrix so releases include a riscv64 binary.
Runner access for the rust-lang org: install the RISE GitHub App. These are native riscv64 machines - no emulation needed.
I can open a PR if this gets the E-Help-wanted or Feature accepted label. Per CONTRIBUTING.md, I understand only labeled issues receive reviews.
Notes
I've built mdBook successfully on riscv64 hardware (SpacemiT K1, Banana Pi F3). cargo build --release and cargo test pass without code changes; Rust's stdlib supports riscv64gc out of the box.