ci: add riscv64 build support#1420
Open
MichaIng wants to merge 2 commits into
Open
Conversation
Intended for testing on my fork only. Signed-off-by: MichaIng <micha@dietpi.com>
This also raises the cross-rs version to the currently latest commit, which fixes support for libssl3 and other recent library versions (usually implicit for riscv64 compatible distro versions), switching to Ubuntu 24.04 build runners. This as well solves Spotifyd#1389 for ARMv7 builds. Signed-off-by: MichaIng <micha@dietpi.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This also raises the
cross-rsversion to the currently latest commit, which fixes support forlibssl3and other recent library versions (usually implicit for riscv64 compatible distro versions), switching to Ubuntu 24.04 build runners. This as well solves #1389 for ARMv7 builds.The added
workflow_dispatch:was for easier testing on my fork, but might come in handy for you as well? So you can trigger CD manually from GitHub Actions GUI (without triggering a release).I also raised the official actions versions, since they emit already warnings about outdated and soon unsupported Node requirements.
The
sed -i "s/arm64 armhf/$CROSS_DEB_ARCH/" /etc/apt/sources.list.d/ubuntu.sourcescan be dropped after cross-rs/cross#1785.Installing QEMU + binfmt here does not seem to be an intentionally necessary step either. I am discussing this at cross-rs/cross#1784.
#1400 drops the use of
cross-rsentirely. Withtrixie-slimimages, this works forriscv64the same way. But it has to be noted that builds via QEMU-emulation are significantly slower than cross-compiling. The individual builds viacross-rstook 5 minutes on my fork: https://github.com/MichaIng/spotifyd/actions/runs/28552458687Would be interesting to compare, to evaluate whether using QEMU-emulation for 32-bit ARM and RISC-V make sense, or whether it should be done for
armv6only, not supported bycross-rs.