From 7ee303fddeb31e21457494e439d9df9a2cb660fa Mon Sep 17 00:00:00 2001 From: WANG Rui Date: Thu, 14 Nov 2024 11:29:03 +0800 Subject: [PATCH] ci: add support for loongarch64-unknown-linux-gnu --- .github/workflows/test.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index bd6f02e..442a94d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -31,6 +31,7 @@ jobs: - { name: Linux-aarch64, os: ubuntu-latest, tool: aarch64-unknown-linux-gnu } - { name: Linux-armv7, os: ubuntu-latest, tool: armv7-unknown-linux-gnueabihf } #- { name: Linux-arm, os: ubuntu-latest, tool: arm-unknown-linux-gnueabihf } + - { name: Linux-loong64, os: ubuntu-latest, tool: loongarch64-unknown-linux-gnu } #- { name: Linux-mips64, os: ubuntu-latest, tool: mips64-unknown-linux-gnuabi64 } #- { name: Linux-powerpc64, os: ubuntu-latest, tool: powerpc64-unknown-linux-gnu } #- { name: Linux-thumbv7, os: ubuntu-latest, tool: thumbv7neon-unknown-linux-gnueabihf } @@ -48,6 +49,7 @@ jobs: env: CI: 1 CARGO_INCREMENTAL: 0 + CROSS_NO_WARNINGS: 0 windows: ${{ startsWith(matrix.target.name, 'Windows') }} linux: ${{ startsWith(matrix.target.name, 'Linux') }} macos: ${{ startsWith(matrix.target.name, 'macOS') }} @@ -59,7 +61,7 @@ jobs: run: | rustup default ${{ matrix.channel }} rustup target add ${{ matrix.target.tool }} - cargo install cross + cargo install cross --git https://github.com/cross-rs/cross --rev 4090beca3cfffa44371a5bba524de3a578aa46c3 - name: Test run: cross test --target ${{ matrix.target.tool }}