Skip to content

ci: add riscv64 build support - #1420

Open
MichaIng wants to merge 2 commits into
Spotifyd:masterfrom
MichaIng:riscv64
Open

MichaIng wants to merge 2 commits into
Spotifyd:masterfrom
MichaIng:riscv64

Conversation

@MichaIng

@MichaIng MichaIng commented Jul 1, 2026 •

Copy link
Copy Markdown
Contributor

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 issue 1389 for ARMv7 builds.

qemu-user is additionally installed in pre-build, since libpulse-dev pulls libglib2.0-dev, which depends on python3 | qemu-user | qemu-user-static on Ubuntu 24.04. And the python3 postinst calls a target architecture binary, which fails unless binfmt registration for the architecture is done, which is not possible from an (unprivileged) container. qemu-user is smaller than qemu-user-static, hence preferred.

The explicit cross image tag is not needed, since :main is the default for cross versions from a commit, which equals :edge in their container registry. I.e. cross-version: <commit> in the workflow renders image = ":edge" in the Cross.toml redundant.

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 issue 1389 for ARMv7 builds.

`qemu-user` is additionally installed in `pre-build`, since `libpulse-dev` pulls `libglib2.0-dev`, which depends on `python3 | qemu-user | qemu-user-static` on Ubuntu 24.04. And the `python3` `postinst` calls a target architecture binary, which fails unless binfmt registration for the architecture is done, which is not possible from an (unprivileged) container. `qemu-user` is smaller than `qemu-user-static`, hence preferred.

The explicit cross image tag is not needed, since `:main` is the default for cross versions from a commit, which equals `:edge` in their container registry. I.e. `cross-version: <commit>` in the workflow renders `image = ":edge"` in the `Cross.toml` redundant.

Signed-off-by: MichaIng <micha@dietpi.com>

This branch has not been deployed

No deployments
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.

1 participant