Skip to content

Commit f591e80

Browse files
committed
Set PATH correctly on Windows
1 parent d16023b commit f591e80

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

azure-pipelines.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,14 @@ steps:
4949
condition: or(eq( variables['Agent.OS'], 'Linux' ), eq( variables['Agent.OS'], 'Darwin' ))
5050
displayName: 'Install Rust (Linux/macOS)'
5151

52-
- script: curl -sSf -o rustup-init.exe https://win.rustup.rs && rustup-init.exe -y --default-toolchain %RUSTUP_TOOLCHAIN% && echo ##vso[task.setvariable variable=PATH;]%PATH%;%USERPROFILE%\.cargo\bin
52+
- script: curl -sSf -o rustup-init.exe https://win.rustup.rs && rustup-init.exe -y --default-toolchain %RUSTUP_TOOLCHAIN%
5353
condition: eq( variables['Agent.OS'], 'Windows_NT' )
5454
displayName: 'Install Rust (Windows)'
5555

56+
- script: |
57+
echo ##vso[task.setvariable variable=PATH;]%PATH%;%USERPROFILE%\.cargo\bin
58+
displayName: 'Add ~/.cargo/bin to PATH (Windows)'
59+
5660
- script: |
5761
rustc -Vv
5862
cargo -V

0 commit comments

Comments
 (0)