CI: use RustCrypto/actions/cross-install (#487)

This action is located at:
https://github.com/RustCrypto/actions/blob/master/cross-install/action.yml
It's used across the RustCrypto project for installing `cross` in CI.
Installation is performed by fetching a pinned binary release from:
https://github.com/cross-rs/cross/releases/
This eliminates problems that might occur when using `cargo install`
such as:
https://github.com/dalek-cryptography/curve25519-dalek/actions/runs/3786735408/jobs/6437902657
It's also marginally faster.
This commit is contained in:
Tony Arcieri 2022-12-27 13:53:12 -07:00 committed by GitHub
parent 0ffcb84625
commit 1b000d271d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -87,7 +87,7 @@ jobs:
with:
toolchain: ${{ matrix.rust }}
targets: ${{ matrix.target }}
- run: cargo install cross
- uses: RustCrypto/actions/cross-install@master
- run: cross test --release --target ${{ matrix.target }}
nightly: