Skip to content

Commit 308f260

Browse files
authored
Map riscv64 linux to linux64-riscv64 and setup CI (#230)
* Map riscv64 linux to linux64-riscv64 * Add CI for riscv64gc-unknown-linux-gnu
1 parent add20f7 commit 308f260

File tree

3 files changed

+18
-3
lines changed

3 files changed

+18
-3
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ jobs:
5353
- target: aarch64-unknown-linux-gnu
5454
rust: stable
5555
os: ubuntu-latest
56+
- target: riscv64gc-unknown-linux-gnu
57+
rust: stable
58+
os: ubuntu-latest
5659
- target: x86_64-unknown-linux-musl
5760
rust: stable
5861
os: ubuntu-latest
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
FROM ubuntu:18.04
2+
3+
RUN apt-get update -y && apt-get install -y --no-install-recommends \
4+
ca-certificates \
5+
make \
6+
perl \
7+
gcc \
8+
libc6-dev \
9+
gcc-riscv64-linux-gnu \
10+
libc6-dev-riscv64-cross
11+
ENV CARGO_TARGET_RISCV64GC_UNKNOWN_LINUX_GNU_RUNNER=echo \
12+
CARGO_TARGET_RISCV64GC_UNKNOWN_LINUX_GNU_LINKER=riscv64-linux-gnu-gcc

src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -331,9 +331,9 @@ impl Build {
331331
"powerpc64le-unknown-linux-musl" => "linux-ppc64le",
332332
"powerpc64le-alpine-linux-musl" => "linux-ppc64le",
333333
"riscv64gc-unknown-freebsd" => "BSD-riscv64",
334-
"riscv64gc-unknown-linux-gnu" => "linux-generic64",
335-
"riscv64gc-unknown-linux-musl" => "linux-generic64",
336-
"riscv64-alpine-linux-musl" => "linux-generic64",
334+
"riscv64gc-unknown-linux-gnu" => "linux64-riscv64",
335+
"riscv64gc-unknown-linux-musl" => "linux64-riscv64",
336+
"riscv64-alpine-linux-musl" => "linux64-riscv64",
337337
"riscv64gc-unknown-netbsd" => "BSD-generic64",
338338
"s390x-unknown-linux-gnu" => "linux64-s390x",
339339
"sparc64-unknown-netbsd" => "BSD-generic64",

0 commit comments

Comments
 (0)