File tree 1 file changed +7
-6
lines changed
1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change 4
4
if command -v rustup; then
5
5
echo `command -v rustup` `rustup -V` already installed
6
6
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"
11
7
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
13
9
echo "##vso[task.prependpath]$HOME/.cargo/bin"
14
10
fi
15
11
displayName: Install rustup
16
12
17
13
- bash : |
18
14
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
20
21
rustup default $TOOLCHAIN
21
22
displayName: Install rust
22
23
You can’t perform that action at this time.
0 commit comments