Skip to content

workflows/CI: add riscv64#98

Merged
suo merged 2 commits intosuo:mainfrom
threexc:tgamblin/add-riscv64-build
Jan 19, 2026
Merged

workflows/CI: add riscv64#98
suo merged 2 commits intosuo:mainfrom
threexc:tgamblin/add-riscv64-build

Conversation

@threexc
Copy link
Contributor

@threexc threexc commented Jan 13, 2026

maturin supports cross-compilation for the architecture, so start supporting it in Linux builds.

As part of the RISE Project, we are adding riscv64 support for Python modules by building and distributing binaries as part of the wheel_builder repository. However, recent versions of maturin can cross-compile modules itself, so it should be relatively seamless to have upstream (i.e. this project) build lintrunner for riscv64.

For the record, I've tested the build locally in a riscv64 container (using quay.io/pypa/manylinux_2_39_riscv64:2025.11.24-1), but because that doesn't fully match the Actions workflow used by lintrunner, I had to invoke maturin with maturin build --release --out dist --target riscv64gc-unknown-linux-gnu. It seems that specifying either riscv64 or riscv64gc in the target list as-is fails to pick up the right rustc target, so we need to be explicit about the target for the riscv64 arch. To prepare for that, a commit is added beforehand to make the platform arch-target combos more explicit.

@threexc
Copy link
Contributor Author

threexc commented Jan 19, 2026

Let me convert this to a draft for now and investigate a bit. There may be some extra steps to get it all working.

@threexc threexc marked this pull request as draft January 19, 2026 13:06
@threexc threexc force-pushed the tgamblin/add-riscv64-build branch from 2c4f4d9 to 5358192 Compare January 19, 2026 15:48
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
maturin supports the architecture for cross-compilation, so add it.

Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
@threexc threexc force-pushed the tgamblin/add-riscv64-build branch from 5358192 to 72b3357 Compare January 19, 2026 16:02
@threexc threexc marked this pull request as ready for review January 19, 2026 16:09
@suo suo merged commit 6401d0a into suo:main Jan 19, 2026
15 checks passed
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.

2 participants