Skip to content

Commit ba5cca2

Browse files
committed
Auto merge of #7513 - Eh2406:ci, r=ehuss
don't download std-docs on CI Now that we have a way to do it, lets not download std-docs on CI. Based on the blog post: https://blog.rust-lang.org/2019/10/15/Rustup-1.20.0.html
2 parents 6a7f505 + e028b87 commit ba5cca2

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

ci/azure-install-rust.yml

+7-6
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,20 @@ steps:
44
if command -v rustup; then
55
echo `command -v rustup` `rustup -V` already installed
66
rustup self update
7-
elif [ "$AGENT_OS" = "Windows_NT" ]; then
8-
curl -sSf -o rustup-init.exe https://win.rustup.rs
9-
rustup-init.exe -y --default-toolchain $TOOLCHAIN
10-
echo "##vso[task.prependpath]$USERPROFILE/.cargo/bin"
117
else
12-
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain $TOOLCHAIN
8+
curl -sSL https://sh.rustup.rs | sh -s -- -y --default-toolchain="$TOOLCHAIN" --profile=minimal
139
echo "##vso[task.prependpath]$HOME/.cargo/bin"
1410
fi
1511
displayName: Install rustup
1612
1713
- bash: |
1814
set -e
19-
rustup update $TOOLCHAIN
15+
rustup set profile minimal
16+
rustup component remove --toolchain=$TOOLCHAIN rust-docs || echo "already removed"
17+
rustup update --no-self-update $TOOLCHAIN
18+
if [ "$TOOLCHAIN" = "nightly" ]; then
19+
rustup component add --toolchain=$TOOLCHAIN rustc-dev
20+
fi
2021
rustup default $TOOLCHAIN
2122
displayName: Install rust
2223

0 commit comments

Comments
 (0)