ci: add support for loongarch64-unknown-linux-gnu
This commit is contained in:
parent
5523607045
commit
baae082fc5
2 changed files with 15 additions and 0 deletions
|
|
@ -32,6 +32,8 @@ jobs:
|
|||
os: ubuntu-latest
|
||||
- target: i686-unknown-linux-gnu
|
||||
os: ubuntu-latest
|
||||
- target: loongarch64-unknown-linux-gnu
|
||||
os: ubuntu-latest
|
||||
- target: powerpc-unknown-linux-gnu
|
||||
os: ubuntu-latest
|
||||
- target: powerpc64-unknown-linux-gnu
|
||||
|
|
|
|||
|
|
@ -0,0 +1,13 @@
|
|||
FROM ubuntu:24.04
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get install -y --no-install-recommends \
|
||||
gcc libc6-dev qemu-user-static ca-certificates \
|
||||
gcc-14-loongarch64-linux-gnu libc6-dev-loong64-cross
|
||||
|
||||
ENV CARGO_TARGET_LOONGARCH64_UNKNOWN_LINUX_GNU_LINKER=loongarch64-linux-gnu-gcc-14 \
|
||||
CARGO_TARGET_LOONGARCH64_UNKNOWN_LINUX_GNU_RUNNER=qemu-loongarch64-static \
|
||||
AR_loongarch64_unknown_linux_gnu=loongarch64-linux-gnu-ar \
|
||||
CC_loongarch64_unknown_linux_gnu=loongarch64-linux-gnu-gcc-14 \
|
||||
QEMU_LD_PREFIX=/usr/loongarch64-linux-gnu \
|
||||
RUST_TEST_THREADS=1
|
||||
Loading…
Add table
Add a link
Reference in a new issue