Skip to content

ci: add riscv64 build support#1420

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

ci: add riscv64 build support#1420
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 #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.sources can 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-rs entirely. With trixie-slim images, this works for riscv64 the same way. But it has to be noted that builds via QEMU-emulation are significantly slower than cross-compiling. The individual builds via cross-rs took 5 minutes on my fork: https://github.com/MichaIng/spotifyd/actions/runs/28552458687
Would 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 armv6 only, not supported by cross-rs.

MichaIng added 2 commits July 1, 2026 17:37
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>
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