Skip to content

ci: add riscv64 target to linux wheel build matrix#104

Closed
gounthar wants to merge 1 commit into
openai:mainfrom
gounthar:feat/add-riscv64-wheel
Closed

ci: add riscv64 target to linux wheel build matrix#104
gounthar wants to merge 1 commit into
openai:mainfrom
gounthar:feat/add-riscv64-wheel

Conversation

@gounthar
Copy link
Copy Markdown

@gounthar gounthar commented Mar 12, 2026

Summary

Add riscv64 to the maturin-action linux build matrix so that linux_riscv64 wheels are built and published to PyPI.

maturin-action cross-compiles via riscv64gc-unknown-linux-gnu cargo target — no QEMU or additional infrastructure needed.

Evidence

Context

  • riscv64gc-unknown-linux-gnu is a Rust tier-2 target with std available
  • maturin-action handles cross-compilation transparently
  • RISC-V hardware is shipping (SiFive, SpacemiT, Sophgo SG2044)

Fixes #102


Note: this work is part of the RISE Project effort to improve Python ecosystem support on riscv64 platforms. Native riscv64 CI runners are available for free via RISE RISC-V runners.

@gounthar
Copy link
Copy Markdown
Author

gounthar commented Mar 19, 2026

Native build verified on riscv64 hardware (BananaPi F3, SpacemiT K1, rv64gc, GCC 14.2.0): SUCCESS (from git clone). Note: building from PyPI sdist with --no-binary :all: fails due to a ../README.md path issue; reported in #105.

@threexc
Copy link
Copy Markdown

threexc commented Mar 19, 2026

@gounthar I've got one open for this as well already: #98

@gounthar
Copy link
Copy Markdown
Author

Closing in favor of #98 by @threexc (BayLibre/RISE) which was opened first and is more thorough. Coordinating to avoid duplicates going forward.

@gounthar gounthar closed this Mar 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add riscv64 (linux_riscv64) wheel to PyPI releases

2 participants