Skip to content

Commit

Permalink
ci: add support for loongarch64-unknown-linux-gnu
Browse files Browse the repository at this point in the history
  • Loading branch information
heiher authored and tgross35 committed Nov 1, 2024
1 parent 9ddeafc commit 5145d95
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 @@ -38,6 +38,9 @@ jobs:
- target: i686-unknown-linux-gnu
os: ubuntu-latest
rust: nightly
- target: loongarch64-unknown-linux-gnu
os: ubuntu-latest
rust: nightly
# MIPS targets disabled since they are dropped to tier 3.
# See https://github.com/rust-lang/compiler-team/issues/648
#- target: mips-unknown-linux-gnu
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 @@
ARG IMAGE=ubuntu:24.04
FROM $IMAGE

RUN apt-get update && \
apt-get install -y --no-install-recommends \
gcc libc6-dev qemu-user-static ca-certificates \
gcc-14-loongarch64-linux-gnu libc6-dev-loong64-cross

ENV CARGO_TARGET_LOONGARCH64_UNKNOWN_LINUX_GNU_LINKER=loongarch64-linux-gnu-gcc-14 \
CARGO_TARGET_LOONGARCH64_UNKNOWN_LINUX_GNU_RUNNER=qemu-loongarch64-static \
CC_loongarch64_unknown_linux_gnu=loongarch64-linux-gnu-gcc-14 \
QEMU_LD_PREFIX=/usr/loongarch64-linux-gnu \
RUST_TEST_THREADS=1

0 comments on commit 5145d95

Please sign in to comment.