Skip to content

Commit

Permalink
Map riscv64 linux to linux64-riscv64 and setup CI (#230)
Browse files Browse the repository at this point in the history
* Map riscv64 linux to linux64-riscv64

* Add CI for riscv64gc-unknown-linux-gnu
  • Loading branch information
kxxt authored Feb 12, 2024
1 parent add20f7 commit 308f260
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ jobs:
- target: aarch64-unknown-linux-gnu
rust: stable
os: ubuntu-latest
- target: riscv64gc-unknown-linux-gnu
rust: stable
os: ubuntu-latest
- target: x86_64-unknown-linux-musl
rust: stable
os: ubuntu-latest
Expand Down
12 changes: 12 additions & 0 deletions ci/docker/riscv64gc-unknown-linux-gnu/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM ubuntu:18.04

RUN apt-get update -y && apt-get install -y --no-install-recommends \
ca-certificates \
make \
perl \
gcc \
libc6-dev \
gcc-riscv64-linux-gnu \
libc6-dev-riscv64-cross
ENV CARGO_TARGET_RISCV64GC_UNKNOWN_LINUX_GNU_RUNNER=echo \
CARGO_TARGET_RISCV64GC_UNKNOWN_LINUX_GNU_LINKER=riscv64-linux-gnu-gcc
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -331,9 +331,9 @@ impl Build {
"powerpc64le-unknown-linux-musl" => "linux-ppc64le",
"powerpc64le-alpine-linux-musl" => "linux-ppc64le",
"riscv64gc-unknown-freebsd" => "BSD-riscv64",
"riscv64gc-unknown-linux-gnu" => "linux-generic64",
"riscv64gc-unknown-linux-musl" => "linux-generic64",
"riscv64-alpine-linux-musl" => "linux-generic64",
"riscv64gc-unknown-linux-gnu" => "linux64-riscv64",
"riscv64gc-unknown-linux-musl" => "linux64-riscv64",
"riscv64-alpine-linux-musl" => "linux64-riscv64",
"riscv64gc-unknown-netbsd" => "BSD-generic64",
"s390x-unknown-linux-gnu" => "linux64-s390x",
"sparc64-unknown-netbsd" => "BSD-generic64",
Expand Down

0 comments on commit 308f260

Please sign in to comment.