ci: add riscv64gc-unknown-linux-gnu to release artifacts#1568
Merged
alexcrichton merged 1 commit intobytecodealliance:mainfrom Mar 13, 2026
Merged
ci: add riscv64gc-unknown-linux-gnu to release artifacts#1568alexcrichton merged 1 commit intobytecodealliance:mainfrom
alexcrichton merged 1 commit intobytecodealliance:mainfrom
Conversation
Add cross-compilation support for riscv64gc-unknown-linux-gnu, following the same Docker-based pattern as the existing aarch64-linux target. Fixes bytecodealliance#1567
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 adds
riscv64gc-unknown-linux-gnuto the release build matrix, so that official releases ship a pre-built Linux/RISC-V 64-bit binary.Changes
ci/docker/riscv64gc-linux/Dockerfile: new cross-compilation container (modeled on the existingaarch64-linuxone, usinggcc-riscv64-linux-gnu; uses Ubuntu 18.04 as riscv64 cross-compiler is not available in 16.04).github/workflows/main.yml: newriscv64gc-linuxmatrix entry in thebuildjobContext
The wasm-tools and wkg repositories recently merged equivalent changes (bytecodealliance/wasm-tools#2464, bytecodealliance/wasm-pkg-tools#196). wit-bindgen is the remaining piece needed for a complete WASIP2 toolchain on RISC-V.
Evidence
A fork release built with this exact configuration is available at https://github.com/gounthar/wit-bindgen; the riscv64gc binary was verified on physical RISC-V hardware (BananaPi BPI-F3, SpacemiT K1).
Fixes #1567