From d21c578a397f27f983df44685de431af52093e34 Mon Sep 17 00:00:00 2001 From: WANG Rui Date: Tue, 19 Nov 2024 11:43:46 +0800 Subject: [PATCH] ci: add support for loongarch64-unknown-linux-gnu --- .github/workflows/rust.yml | 1 + Cross.toml | 3 +++ ci/run.sh | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 Cross.toml diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 82196d7d7..0d52bec22 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -48,6 +48,7 @@ jobs: x86_64-unknown-linux-gnu, i686-unknown-linux-gnu, i586-unknown-linux-gnu, + loongarch64-unknown-linux-gnu, armv7-unknown-linux-gnueabihf, aarch64-unknown-linux-gnu, thumbv6m-none-eabi, diff --git a/Cross.toml b/Cross.toml new file mode 100644 index 000000000..de6357032 --- /dev/null +++ b/Cross.toml @@ -0,0 +1,3 @@ +# FIXME: Drop this config when cross is updated to support loongarch64-linux-gnu +[target.loongarch64-unknown-linux-gnu] +image = "ghcr.io/cross-rs/loongarch64-unknown-linux-gnu:edge" diff --git a/ci/run.sh b/ci/run.sh index 39cf49c42..26899272e 100644 --- a/ci/run.sh +++ b/ci/run.sh @@ -9,7 +9,7 @@ case "${TARGET}" in CROSS=0 NO_STD=0 ;; - thumbv6m-none-eabi) + thumbv6m-none-eabi|loongarch64-unknown-linux-gnu) CROSS=1 NO_STD=1 ;;