Skip to content

Commit 705bb12

Browse files
committed
ci: add support for loongarch64-unknown-linux-gnu
1 parent 81f0cd3 commit 705bb12

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

.github/workflows/full_ci.yml

+1
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ jobs:
163163
- arm-unknown-linux-musleabihf
164164
- i686-linux-android
165165
- i686-unknown-linux-musl
166+
- loongarch64-unknown-linux-gnu
166167
- powerpc-unknown-linux-gnu
167168
- powerpc64-unknown-linux-gnu
168169
- powerpc64le-unknown-linux-gnu
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
FROM ubuntu:24.04
2+
3+
RUN apt-get update && apt-get install -y --no-install-recommends \
4+
gcc libc6-dev qemu-user ca-certificates \
5+
gcc-14-loongarch64-linux-gnu libc6-dev-loong64-cross \
6+
linux-headers-generic
7+
8+
ENV CARGO_TARGET_LOONGARCH64_UNKNOWN_LINUX_GNU_LINKER=loongarch64-linux-gnu-gcc-14 \
9+
CARGO_TARGET_LOONGARCH64_UNKNOWN_LINUX_GNU_RUNNER="qemu-loongarch64 -L /usr/loongarch64-linux-gnu" \
10+
CC_loongarch64_unknown_linux_gnu=loongarch64-linux-gnu-gcc-14 \
11+
CFLAGS_loongarch64_unknown_linux_gnu="-mabi=lp64d -fPIC" \
12+
PATH=$PATH:/rust/bin

0 commit comments

Comments
 (0)