Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Map riscv64 linux to linux64-riscv64 and setup CI #230

Merged
merged 2 commits into from
Feb 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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