Skip to content

Commit

Permalink
ci: add support for loongarch64-unknown-linux-gnu (#258)
Browse files Browse the repository at this point in the history
  • Loading branch information
heiher authored Nov 12, 2024
1 parent 35bc813 commit 5162b56
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ jobs:
- target: riscv64gc-unknown-linux-gnu
rust: stable
os: ubuntu-latest
- target: loongarch64-unknown-linux-gnu
rust: stable
os: ubuntu-latest
- target: x86_64-unknown-linux-musl
rust: stable
os: ubuntu-latest
Expand Down
13 changes: 13 additions & 0 deletions ci/docker/loongarch64-unknown-linux-gnu/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM ubuntu:24.04

RUN apt-get update -y && apt-get install -y --no-install-recommends \
ca-certificates \
make \
perl \
gcc \
libc6-dev \
gcc-14-loongarch64-linux-gnu \
libc6-dev-loong64-cross
ENV CC_loongarch64_unknown_linux_gnu=loongarch64-linux-gnu-gcc-14 \
CARGO_TARGET_LOONGARCH64_UNKNOWN_LINUX_GNU_RUNNER=echo \
CARGO_TARGET_LOONGARCH64_UNKNOWN_LINUX_GNU_LINKER=loongarch64-linux-gnu-gcc-14

0 comments on commit 5162b56

Please sign in to comment.