Skip to content

Commit ca620bc

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

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
@@ -170,6 +170,7 @@ jobs:
170170
- arm-unknown-linux-musleabihf
171171
- i686-linux-android
172172
- i686-unknown-linux-musl
173+
- loongarch64-unknown-linux-gnu
173174
- powerpc-unknown-linux-gnu
174175
- powerpc64-unknown-linux-gnu
175176
- 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)