Disable auto-self-update for rustup

See: https://github.com/rust-lang/rustup/issues/3189
This commit is contained in:
Héctor Ramón Jiménez 2024-03-12 01:12:48 +01:00
parent f344d1a51e
commit 110f367495
No known key found for this signature in database
GPG Key ID: 7CC46565708259A7

View File

@ -12,6 +12,7 @@ args=()
# shellcheck disable=SC2206 # shellcheck disable=SC2206
[[ -n "${INPUT_TARGETS}" ]] && args+=(-t "${INPUT_TARGETS// /}") [[ -n "${INPUT_TARGETS}" ]] && args+=(-t "${INPUT_TARGETS// /}")
rustup set auto-self-update disable
rustup toolchain install "${INPUT_RUST_VERSION}" --profile "${INPUT_PROFILE}" "${args[@]}" rustup toolchain install "${INPUT_RUST_VERSION}" --profile "${INPUT_PROFILE}" "${args[@]}"
rustup default "${INPUT_RUST_VERSION}" rustup default "${INPUT_RUST_VERSION}"