Skip to content

build(cross): add linux/riscv64 to the cross target - #5042

Merged
aheritier merged 2 commits into
docker:mainfrom
gounthar:build/cross-linux-riscv64
Nov 25, 2026
Merged

aheritier merged 2 commits into
docker:mainfrom
gounthar:build/cross-linux-riscv64

Conversation

@gounthar

Copy link
Copy Markdown
Contributor

Adds linux/riscv64 to task cross. The Dockerfile builds it unchanged: xx-verify --static passes, and the binary runs version, --help and debug config on 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.

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>
@gounthar
gounthar requested a review from a team as a code owner November 25, 2026 14:26
Copilot AI balanced review requested due to automatic review settings November 25, 2026 14:26

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 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/riscv64 to 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

@aheritier aheritier added area/ci CI/CD workflows and pipeline kind/chore Maintenance, deps, CI, tooling (maps to chore: commit prefix) labels Nov 25, 2026
Copilot AI balanced review requested due to automatic review settings November 25, 2026 17:45

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

There are no active review issues for the Linux RISC-V cross-build addition.

No open issues 🎉

Review effort: Balanced

@aheritier

Copy link
Copy Markdown
Collaborator

Hi @gounthar 👋🏻,

Yes I will update the release process

Thanks

@aheritier
aheritier enabled auto-merge November 25, 2026 22:11
@aheritier
aheritier added this pull request to the merge queue Nov 25, 2026
Merged via the queue into docker:main with commit e6e594a Nov 25, 2026
17 checks passed
@gounthar

Copy link
Copy Markdown
Contributor Author

Thanks, Arnaud, and thanks for taking care of the release side too. I'll check the next release for the riscv64 binary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/ci CI/CD workflows and pipeline kind/chore Maintenance, deps, CI, tooling (maps to chore: commit prefix)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants