Skip to content

Commit 5162b56

Browse files
authored
ci: add support for loongarch64-unknown-linux-gnu (#258)
1 parent 35bc813 commit 5162b56

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ jobs:
5656
- target: riscv64gc-unknown-linux-gnu
5757
rust: stable
5858
os: ubuntu-latest
59+
- target: loongarch64-unknown-linux-gnu
60+
rust: stable
61+
os: ubuntu-latest
5962
- target: x86_64-unknown-linux-musl
6063
rust: stable
6164
os: ubuntu-latest
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
FROM ubuntu:24.04
2+
3+
RUN apt-get update -y && apt-get install -y --no-install-recommends \
4+
ca-certificates \
5+
make \
6+
perl \
7+
gcc \
8+
libc6-dev \
9+
gcc-14-loongarch64-linux-gnu \
10+
libc6-dev-loong64-cross
11+
ENV CC_loongarch64_unknown_linux_gnu=loongarch64-linux-gnu-gcc-14 \
12+
CARGO_TARGET_LOONGARCH64_UNKNOWN_LINUX_GNU_RUNNER=echo \
13+
CARGO_TARGET_LOONGARCH64_UNKNOWN_LINUX_GNU_LINKER=loongarch64-linux-gnu-gcc-14

0 commit comments

Comments
 (0)