@@ -46,14 +46,12 @@ jobs:
46
46
condition: or(eq( variables['Agent.OS'], 'Linux' ), eq( variables['Agent.OS'], 'Darwin' ))
47
47
displayName: 'Install Rust (Linux/macOS)'
48
48
49
- - script : curl -sSf -o rustup-init.exe https://win.rustup.rs && rustup-init.exe -y -- default-toolchain % RUSTUP_TOOLCHAIN%
49
+ - bash : rustup default $ RUSTUP_TOOLCHAIN
50
50
condition : eq( variables['Agent.OS'], 'Windows_NT' )
51
- displayName : ' Install Rust (Windows)'
51
+ displayName : ' Set Rust Toolchain (Windows)'
52
52
53
- - script : |
54
- echo ##vso[task.setvariable variable=PATH;]%PATH%;%USERPROFILE%\.cargo\bin
55
- condition: eq( variables['Agent.OS'], 'Windows_NT' )
56
- displayName: 'Add ~/.cargo/bin to PATH (Windows)'
53
+ - bash : rustup update $RUSTUP_TOOLCHAIN
54
+ displayName : ' Run Rustup Update'
57
55
58
56
- script : |
59
57
rustc -Vv
@@ -107,14 +105,12 @@ jobs:
107
105
condition: or(eq( variables['Agent.OS'], 'Linux' ), eq( variables['Agent.OS'], 'Darwin' ))
108
106
displayName: 'Install Rust (Linux/macOS)'
109
107
110
- - script : curl -sSf -o rustup-init.exe https://win.rustup.rs && rustup-init.exe -y -- default-toolchain % RUSTUP_TOOLCHAIN%
108
+ - bash : rustup default $ RUSTUP_TOOLCHAIN
111
109
condition : eq( variables['Agent.OS'], 'Windows_NT' )
112
- displayName : ' Install Rust (Windows)'
110
+ displayName : ' Set Rust Toolchain (Windows)'
113
111
114
- - script : |
115
- echo ##vso[task.setvariable variable=PATH;]%PATH%;%USERPROFILE%\.cargo\bin
116
- condition: eq( variables['Agent.OS'], 'Windows_NT' )
117
- displayName: 'Add ~/.cargo/bin to PATH (Windows)'
112
+ - bash : rustup update $RUSTUP_TOOLCHAIN
113
+ displayName : ' Run Rustup Update'
118
114
119
115
- script : |
120
116
rustc -Vv
0 commit comments