File tree Expand file tree Collapse file tree 1 file changed +13
-8
lines changed Expand file tree Collapse file tree 1 file changed +13
-8
lines changed Original file line number Diff line number Diff line change 6
6
7
7
if command -v rustup; then
8
8
echo `command -v rustup` `rustup -V` already installed
9
- rustup self update
10
- elif [ "$AGENT_OS" = "Windows_NT" ]; then
11
- curl -sSf -o rustup-init.exe https://win.rustup.rs
12
- rustup-init.exe -y --default-toolchain $TOOLCHAIN
13
- echo "##vso[task.prependpath]$USERPROFILE/.cargo/bin"
9
+
10
+ if brew ls rustup &>/dev/null; then
11
+ brew upgrade rustup
12
+ else
13
+ rustup self update
14
+ fi
14
15
else
15
- curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain $TOOLCHAIN
16
+ curl -sSL https://sh.rustup.rs | sh -s -- -y --default-toolchain=" $TOOLCHAIN" --profile=minimal
16
17
echo "##vso[task.prependpath]$HOME/.cargo/bin"
17
18
fi
18
19
displayName: Install rustup
19
20
20
21
- bash : |
21
22
set -euo pipefail
22
-
23
- rustup update $TOOLCHAIN
23
+ rustup set profile minimal
24
+ rustup component remove --toolchain=$TOOLCHAIN rust-docs || echo "already removed"
25
+ rustup update --no-self-update $TOOLCHAIN
26
+ if [ "$TOOLCHAIN" = "nightly" ]; then
27
+ rustup component add --toolchain=$TOOLCHAIN rustc-dev
28
+ fi
24
29
rustup default $TOOLCHAIN
25
30
displayName: Install rust
26
31
You can’t perform that action at this time.
0 commit comments