Skip to content

Commit 49e3e0d

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

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

azure-pipelines.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,13 @@ 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: echo ##vso[task.setvariable variable=PATH;]%PATH%;%USERPROFILE%\.cargo\bin
57+
displayName: 'Add ~/.cargo/bin to PATH (Windows)'
58+
5659
- script: |
5760
rustc -Vv
5861
cargo -V

0 commit comments

Comments
 (0)