Avoid rustup self-updates on Windows GHA

This commit is contained in:
Yuki Okushi 2020-12-04 01:55:42 +09:00
parent 8e62c98274
commit 7a76e61573
1 changed files with 2 additions and 1 deletions

View File

@ -13,7 +13,8 @@ fi
if [ "$OS" = "windows" ]; then
: "${TARGET?The TARGET environment variable must be set.}"
rustup set profile minimal
rustup update --force $toolchain-"$TARGET"
# FIXME: Add `--no-self-update` to avoid CI failure.
rustup update --force $toolchain-"$TARGET" --no-self-update
rustup default $toolchain-"$TARGET"
else
rustup set profile minimal