Browse Source

Fix Windows CI

index-subcmd
Vincent Prouillet 4 years ago
parent
commit
e9eb0e1c4d
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      azure-pipelines.yml

+ 2
- 2
azure-pipelines.yml View File

@@ -32,7 +32,7 @@ stages:
condition: ne( variables['Agent.OS'], 'Windows_NT' ) condition: ne( variables['Agent.OS'], 'Windows_NT' )
- script: | - script: |
curl -sSf -o rustup-init.exe https://win.rustup.rs curl -sSf -o rustup-init.exe https://win.rustup.rs
rustup-init.exe -y --default-toolchain %RUSTUP_TOOLCHAIN%
rustup-init.exe -y --default-toolchain %RUSTUP_TOOLCHAIN% --default-host x86_64-pc-windows-msvc
echo "##vso[task.setvariable variable=PATH;]%PATH%;%USERPROFILE%\.cargo\bin" echo "##vso[task.setvariable variable=PATH;]%PATH%;%USERPROFILE%\.cargo\bin"
displayName: Windows install rust displayName: Windows install rust
condition: eq( variables['Agent.OS'], 'Windows_NT' ) condition: eq( variables['Agent.OS'], 'Windows_NT' )
@@ -72,7 +72,7 @@ stages:
- script: | - script: |
set CARGO_HOME=%USERPROFILE%\.cargo set CARGO_HOME=%USERPROFILE%\.cargo
curl -sSf -o rustup-init.exe https://win.rustup.rs curl -sSf -o rustup-init.exe https://win.rustup.rs
rustup-init.exe -y --default-toolchain %RUSTUP_TOOLCHAIN%
rustup-init.exe -y --default-toolchain %RUSTUP_TOOLCHAIN% --default-host x86_64-pc-windows-msvc
set PATH=%PATH%;%USERPROFILE%\.cargo\bin set PATH=%PATH%;%USERPROFILE%\.cargo\bin
echo "##vso[task.setvariable variable=PATH;]%PATH%;%USERPROFILE%\.cargo\bin" echo "##vso[task.setvariable variable=PATH;]%PATH%;%USERPROFILE%\.cargo\bin"
displayName: Windows install rust displayName: Windows install rust


Loading…
Cancel
Save