Repository navigation
build(cross): add linux/riscv64 to the cross target - #5042
Merged
Merged
Conversation
The Dockerfile's cross stage already builds a static riscv64 binary unchanged: golang:1.27.4-alpine3.23, tonistiigi/xx:1.9.0 and the Alpine musl-dev package all exist for riscv64, and zig handles the CGO link. Checked with `docker buildx build --target=cross --platform linux/riscv64` at ec70cc8: xx-verify --static passed (95 s compile, cross from x86_64), and the binary runs `version`, `--help` and `debug config` on a Banana Pi F3 (SpacemiT K1, Debian trixie). Only the binary. The image stays amd64/arm64 because docker/mcp-gateway:v2 and docker/sandbox-templates:shell-docker are not published for riscv64. Signed-off-by: Bruno Verachten <gounthar@gmail.com>
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are reported for the Linux RISC-V cross-build addition.
No open issues 🎉
What changed in this PR
Adds Linux RISC-V binary builds to task cross using the existing Docker cross-compilation pipeline. This supports local builds for #5041 but does not change release-asset publication.
Changes:
- Adds
linux/riscv64to the cross-build platform list. - Preserves existing platform targets and leaves container-image builds unchanged.
| File | Description |
|---|---|
Taskfile.yml |
Adds linux/riscv64 to the cross task’s Docker Buildx command. |
Review effort: Balanced
Collaborator
|
Hi @gounthar 👋🏻, Yes I will update the release process Thanks |
aheritier
enabled auto-merge
November 25, 2026 22:11
aheritier
approved these changes
Nov 25, 2026
Contributor
Author
|
Thanks, Arnaud, and thanks for taking care of the release side too. I'll check the next release for the riscv64 binary. |
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.
Adds
linux/riscv64totask cross. The Dockerfile builds it unchanged:xx-verify --staticpasses, and the binary runsversion,--helpanddebug configon a Banana Pi F3. Details in the commit message.The release binaries seem to be built outside this repo, so this alone probably won't add a riscv64 asset. See #5041.