Skip to content

Add riscv64 build, and make target list more explicit#110

Merged
messense merged 4 commits intomessense:mainfrom
threexc:tgamblin/riscv64
Jan 21, 2026
Merged

Add riscv64 build, and make target list more explicit#110
messense merged 4 commits intomessense:mainfrom
threexc:tgamblin/riscv64

Conversation

@threexc
Copy link
Contributor

@threexc threexc commented Jan 19, 2026

maturin supports riscv64 cross-compile, so add that to the build matrix. However, first make things more explicit about which rustc targets to use for each architecture.

When I was testing this out on my fork, I found that just specifying riscv64 as a target didn't work, but being very clear about which compiler target matched to each architecture did, so I've added that.

@threexc
Copy link
Contributor Author

threexc commented Jan 19, 2026

I've added a revertme patch that disables package upload, just so we can test the build run. Otherwise, armv7 fails because the package is already there and we never get to the other builds (namely, the riscv64 one).

Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
@threexc
Copy link
Contributor Author

threexc commented Jan 19, 2026

The revertme patch is gone now. I've added a separate one for the musllinux cross case, which also tweaks the upload step to be consistent with linux cross.

@threexc
Copy link
Contributor Author

threexc commented Jan 20, 2026

@messense looking at the musllinux-cross failure for riscv64, I think it might need some extra tooling installed to get it working. I think in this case it's safer to only build for riscv64 with glibc for now. What are your thoughts?

@messense
Copy link
Owner

Sounds good.

@messense messense merged commit 260e1b1 into messense:main Jan 21, 2026
18 of 19 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