Set rust-version as the default toolchain

This commit is contained in:
Héctor Ramón Jiménez 2023-09-04 15:09:01 +02:00
parent d36bd21e6b
commit 1c10d9b9ac
No known key found for this signature in database
GPG Key ID: 140CC052C94F138E

View File

@ -13,6 +13,7 @@ args=()
[[ -n "${INPUT_TARGETS}" ]] && args+=(-t "${INPUT_TARGETS// /}") [[ -n "${INPUT_TARGETS}" ]] && args+=(-t "${INPUT_TARGETS// /}")
rustup toolchain install "${INPUT_RUST_VERSION}" "${args[@]}" rustup toolchain install "${INPUT_RUST_VERSION}" "${args[@]}"
rustup default "${INPUT_RUST_VERSION}"
# shellcheck disable=SC2129 # shellcheck disable=SC2129
echo "rustup_version=$(rustup --version)" >> $GITHUB_OUTPUT echo "rustup_version=$(rustup --version)" >> $GITHUB_OUTPUT