diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 10dec9e4..53826600 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -56,6 +56,9 @@ jobs: - target: riscv64gc-unknown-linux-gnu rust: stable os: ubuntu-latest + - target: loongarch64-unknown-linux-gnu + rust: stable + os: ubuntu-latest - target: x86_64-unknown-linux-musl rust: stable os: ubuntu-latest diff --git a/ci/docker/loongarch64-unknown-linux-gnu/Dockerfile b/ci/docker/loongarch64-unknown-linux-gnu/Dockerfile new file mode 100644 index 00000000..6cdc81c7 --- /dev/null +++ b/ci/docker/loongarch64-unknown-linux-gnu/Dockerfile @@ -0,0 +1,13 @@ +FROM ubuntu:24.04 + +RUN apt-get update -y && apt-get install -y --no-install-recommends \ + ca-certificates \ + make \ + perl \ + gcc \ + libc6-dev \ + gcc-14-loongarch64-linux-gnu \ + libc6-dev-loong64-cross +ENV CC_loongarch64_unknown_linux_gnu=loongarch64-linux-gnu-gcc-14 \ + CARGO_TARGET_LOONGARCH64_UNKNOWN_LINUX_GNU_RUNNER=echo \ + CARGO_TARGET_LOONGARCH64_UNKNOWN_LINUX_GNU_LINKER=loongarch64-linux-gnu-gcc-14