Skip to content

Commit 5145d95

Browse files
heihertgross35
authored andcommitted
ci: add support for loongarch64-unknown-linux-gnu
1 parent 9ddeafc commit 5145d95

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

.github/workflows/main.yml

+3
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ jobs:
3838
- target: i686-unknown-linux-gnu
3939
os: ubuntu-latest
4040
rust: nightly
41+
- target: loongarch64-unknown-linux-gnu
42+
os: ubuntu-latest
43+
rust: nightly
4144
# MIPS targets disabled since they are dropped to tier 3.
4245
# See https://github.com/rust-lang/compiler-team/issues/648
4346
#- target: mips-unknown-linux-gnu
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
ARG IMAGE=ubuntu:24.04
2+
FROM $IMAGE
3+
4+
RUN apt-get update && \
5+
apt-get install -y --no-install-recommends \
6+
gcc libc6-dev qemu-user-static ca-certificates \
7+
gcc-14-loongarch64-linux-gnu libc6-dev-loong64-cross
8+
9+
ENV CARGO_TARGET_LOONGARCH64_UNKNOWN_LINUX_GNU_LINKER=loongarch64-linux-gnu-gcc-14 \
10+
CARGO_TARGET_LOONGARCH64_UNKNOWN_LINUX_GNU_RUNNER=qemu-loongarch64-static \
11+
CC_loongarch64_unknown_linux_gnu=loongarch64-linux-gnu-gcc-14 \
12+
QEMU_LD_PREFIX=/usr/loongarch64-linux-gnu \
13+
RUST_TEST_THREADS=1

0 commit comments

Comments
 (0)