This repository was archived by the owner on Dec 29, 2022. It is now read-only.
File tree 1 file changed +9
-4
lines changed
1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change 2
2
# Linux and macOS.
3
3
- script : |
4
4
set -e
5
- curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain $RUSTUP_TOOLCHAIN
5
+ curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain none
6
+ export PATH=$PATH:$HOME/.cargo/bin
7
+ rustup toolchain install $RUSTUP_TOOLCHAIN
8
+ rustup default $RUSTUP_TOOLCHAIN
6
9
echo "##vso[task.setvariable variable=PATH;]$PATH:$HOME/.cargo/bin"
7
10
env:
8
11
RUSTUP_TOOLCHAIN: ${{parameters.rust_version}}
@@ -11,18 +14,20 @@ steps:
11
14
12
15
# Windows.
13
16
- script : |
14
- echo "windows"
15
17
curl -sSf -o rustup-init.exe https://win.rustup.rs
16
- rustup-init.exe -y --default-toolchain %RUSTUP_TOOLCHAIN%
18
+ rustup-init.exe -y --default-toolchain none
17
19
set PATH=%PATH%;%USERPROFILE%\.cargo\bin
20
+ rustup toolchain install %RUSTUP_TOOLCHAIN%
21
+ rustup default %RUSTUP_TOOLCHAIN%
18
22
echo "##vso[task.setvariable variable=PATH;]%PATH%;%USERPROFILE%\.cargo\bin"
19
23
env:
20
24
RUSTUP_TOOLCHAIN: ${{parameters.rust_version}}
21
- displayName: Install rust (windows)
25
+ displayName: " Install rust (windows)"
22
26
condition: eq(variables['Agent.OS'], 'Windows_NT')
23
27
24
28
# All platforms.
25
29
- script : |
30
+ rustup toolchain list
26
31
rustc -Vv
27
32
cargo -V
28
33
displayName: Query rust and cargo versions
You can’t perform that action at this time.
0 commit comments