Skip to content

Commit 3704b06

Browse files
authored
ci: add riscv64gc-unknown-linux-gnu to release artifacts (#1568)
Add cross-compilation support for riscv64gc-unknown-linux-gnu, following the same Docker-based pattern as the existing aarch64-linux target. Fixes #1567
1 parent 32b3d80 commit 3704b06

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

.github/workflows/main.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ jobs:
3030
env:
3131
CARGO_BUILD_TARGET: aarch64-unknown-linux-gnu
3232
DOCKER_IMAGE: ./ci/docker/aarch64-linux/Dockerfile
33+
- build: riscv64gc-linux
34+
os: ubuntu-latest
35+
env:
36+
CARGO_BUILD_TARGET: riscv64gc-unknown-linux-gnu
37+
DOCKER_IMAGE: ./ci/docker/riscv64gc-linux/Dockerfile
3338

3439
- build: x86_64-macos
3540
os: macos-latest
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
FROM ubuntu:18.04
2+
3+
RUN apt-get update -y && apt-get install -y gcc gcc-riscv64-linux-gnu ca-certificates git
4+
5+
ENV PATH=$PATH:/rust/bin
6+
ENV CARGO_BUILD_TARGET=riscv64gc-unknown-linux-gnu
7+
ENV CARGO_TARGET_RISCV64GC_UNKNOWN_LINUX_GNU_LINKER=riscv64-linux-gnu-gcc

0 commit comments

Comments
 (0)