Skip to content

Commit e9a020a

Browse files
heihertgross35
authored andcommitted
ci: add support for loongarch64-unknown-linux-gnu
(backport <#4000>) (cherry picked from commit 705bb12)
1 parent 3946ab9 commit e9a020a

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
@@ -171,6 +171,7 @@ jobs:
171171
- arm-unknown-linux-musleabihf
172172
- i686-linux-android
173173
- i686-unknown-linux-musl
174+
- loongarch64-unknown-linux-gnu
174175
- powerpc-unknown-linux-gnu
175176
- powerpc64-unknown-linux-gnu
176177
- 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)