Skip to content

Commit b81d1aa

Browse files
committed
Add riscv64gc to CI
There is a proposal to promote `riscv64gc-unknown-linux-gnu` to tier 1 [1]. We do not currently test RISC-V in CI; add it here. [1]: https://rust-lang.zulipchat.com/#narrow/stream/131828-t-compiler/topic/Imminent.20RFC.20PR.3A.20riscv64gc-unknown-linux-gnu.20to.20Tier-1
1 parent bfc64e3 commit b81d1aa

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

.github/workflows/main.yml

+3
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ jobs:
6161
- target: powerpc64le-unknown-linux-gnu
6262
os: ubuntu-latest
6363
rust: nightly
64+
- target: riscv64gc-unknown-linux-gnu
65+
os: ubuntu-latest
66+
rust: nightly
6467
- target: thumbv6m-none-eabi
6568
os: ubuntu-latest
6669
rust: nightly
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
ARG IMAGE=ubuntu:24.04
2+
FROM $IMAGE
3+
4+
RUN apt-get update && \
5+
apt-get install -y --no-install-recommends \
6+
gcc libc6-dev qemu-user-static ca-certificates \
7+
gcc-riscv64-linux-gnu libc6-dev-ppc64el-cross \
8+
qemu-system-riscv64
9+
10+
ENV CARGO_TARGET_RISCV64GC_UNKNOWN_LINUX_GNU_LINKER=riscv64-linux-gnu-gcc \
11+
CARGO_TARGET_RISCV64GC_UNKNOWN_LINUX_GNU_RUNNER=qemu-riscv64-static \
12+
QEMU_LD_PREFIX=/usr/riscv64-linux-gnu \
13+
RUST_TEST_THREADS=1

0 commit comments

Comments
 (0)