ci: use the host Rust toolchain without updating it
All checks were successful
ci / check (push) Successful in 5m28s
All checks were successful
ci / check (push) Successful in 5m28s
This commit is contained in:
parent
cffb1d8962
commit
f5bc78dbb6
1 changed files with 6 additions and 7 deletions
|
|
@ -34,14 +34,13 @@ jobs:
|
|||
done
|
||||
[ "$miss" = 0 ]
|
||||
|
||||
- name: Install Rust toolchain
|
||||
- name: Verify Rust toolchain
|
||||
run: |
|
||||
if ! command -v rustup >/dev/null; then
|
||||
curl -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal
|
||||
fi
|
||||
. "$HOME/.cargo/env" 2>/dev/null || true
|
||||
rustup toolchain install stable --profile minimal -c rustfmt -c clippy
|
||||
rustup component add rustfmt clippy
|
||||
set -euo pipefail
|
||||
# Use the host toolchain as is; CI must not update or change it.
|
||||
command -v cargo >/dev/null || { echo "::error::cargo is not installed on the runner"; exit 1; }
|
||||
cargo fmt --version
|
||||
cargo clippy --version
|
||||
cargo --version
|
||||
|
||||
- name: Cache cargo
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue