Skip to content

Commit 35ac70a

Browse files
committed
ci: add support for loongarch64-unknown-linux-gnu
1 parent 5523a31 commit 35ac70a

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

.github/workflows/ci.yml

+4-8
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ jobs:
3535
- aarch64-unknown-linux-gnu
3636
- arm64ec-pc-windows-msvc
3737
- armv7-unknown-linux-gnueabihf
38+
- loongarch64-unknown-linux-gnu
3839
# non-nightly since https://github.com/rust-lang/rust/pull/113274
3940
# - mips-unknown-linux-gnu
4041
# - mips64-unknown-linux-gnuabi64
@@ -195,6 +196,7 @@ jobs:
195196
- powerpc-unknown-linux-gnu
196197
- powerpc64le-unknown-linux-gnu # includes altivec by default
197198
- riscv64gc-unknown-linux-gnu
199+
- loongarch64-unknown-linux-gnu
198200
# MIPS uses a nonstandard binary representation for NaNs which makes it worth testing
199201
# non-nightly since https://github.com/rust-lang/rust/pull/113274
200202
# - mips-unknown-linux-gnu
@@ -216,15 +218,9 @@ jobs:
216218
run: rustup target add ${{ matrix.target }}
217219

218220
- name: Install Cross
219-
# Equivalent to `cargo install cross`, but downloading a prebuilt
220-
# binary. Ideally we wouldn't hardcode a version, but the version number
221-
# being part of the tarball means we can't just use the download/latest
222-
# URL :(
221+
# Install the latest git version for newer targets.
223222
run: |
224-
CROSS_URL=https://github.com/cross-rs/cross/releases/download/v0.2.5/cross-x86_64-unknown-linux-gnu.tar.gz
225-
mkdir -p "$HOME/.bin"
226-
curl -sfSL --retry-delay 10 --retry 5 "${CROSS_URL}" | tar zxf - -C "$HOME/.bin"
227-
echo "$HOME/.bin" >> $GITHUB_PATH
223+
cargo install cross --git https://github.com/cross-rs/cross --rev 4090beca3cfffa44371a5bba524de3a578aa46c3
228224
229225
- name: Configure Emulated CPUs
230226
run: |

0 commit comments

Comments
 (0)