Skip to content

Commit 3a66beb

Browse files
committed
CI support for riscv64gc-unknown-linux-gnu
1 parent e84116a commit 3a66beb

File tree

4 files changed

+14
-0
lines changed

4 files changed

+14
-0
lines changed

ci/actions-templates/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ system.
5656
| armv7-linux-androideabi | Yes | Two | No | No |
5757
| i686-linux-android | Yes | Two | No | No |
5858
| x86_64-linux-android | Yes | Two | No | No |
59+
| riscv64gc-unknown-linux-gnu | Yes | --- | No | No |
5960
| ----------------------------- | ---------- | ----- | ------ | ---------- |
6061
| x86_64-apple-darwin | No | One | Yes | Yes |
6162
| ----------------------------- | ---------- | ----- | ------ | ---------- |

ci/actions-templates/linux-builds-template.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ jobs:
4646
- armv7-linux-androideabi # skip-pr skip-master
4747
- i686-linux-android # skip-pr skip-master
4848
- x86_64-linux-android # skip-pr skip-master
49+
- riscv64gc-unknown-linux-gnu # skip-pr skip-master
4950
include:
5051
- target: x86_64-unknown-linux-gnu
5152
run_tests: YES
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
FROM rust-riscv64gc-unknown-linux-gnu
2+
3+
4+
# We install a stable toolchain using rustup anyway, this should stop us getting
5+
# confused and still having this toolchain in $PATH
6+
RUN /usr/local/lib/rustlib/uninstall.sh
7+
# Weirdly that doesn't remove these:
8+
RUN rm /usr/local/bin/cargo /usr/local/bin/rust*
9+
10+
ENV CC_riscv64gc_unknown_linux_gnu=riscv64-unknown-linux-gnu-gcc \
11+
CARGO_TARGET_RISCV64GC_UNKNOWN_LINUX_GNU_LINKER=riscv64-unknown-linux-gnu-gcc

ci/fetch-rust-docker.bash

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ case "$TARGET" in
3232
x86_64-unknown-freebsd) image=dist-x86_64-freebsd ;;
3333
x86_64-unknown-linux-gnu) image=dist-x86_64-linux ;;
3434
x86_64-unknown-netbsd) image=dist-x86_64-netbsd ;;
35+
riscv64gc-unknown-linux-gnu) image=dist-various-1 ;;
3536
*) exit ;;
3637
esac
3738

0 commit comments

Comments
 (0)