ci: try to fix broken rustup+azure
@@ -16,10 +16,12 @@ strategy:
windows-stable-64bit:
imageName: 'vs2017-win2016'
rustup_toolchain: stable-x86_64-pc-windows-msvc
+ host_triple: x86_64-pc-windows-msvc
platform: x64
windows-stable-32bit:
imageName: 'vs2017-win2016'
rustup_toolchain: stable-i686-pc-windows-msvc
+ host_triple: x86_64-pc-windows-msvc
platform: x86
pool:
vmImage: $(imageName)
@@ -53,7 +55,7 @@ steps:
echo ##vso[task.setvariable variable=RUSTUP_HOME]%USERPROFILE%\.rustup
echo ##vso[task.setvariable variable=CARGO_HOME]%USERPROFILE%\.cargo
curl -sSf -o rustup-init.exe https://win.rustup.rs
- rustup-init.exe -y --profile=minimal --default-toolchain %RUSTUP_TOOLCHAIN%
+ rustup-init.exe -y --profile=minimal --default-toolchain %RUSTUP_TOOLCHAIN% --default-host %HOST_TRIPLE%
echo ##vso[task.setvariable variable=PATH]%PATH%;%USERPROFILE%\.cargo\bin
condition: eq( variables['Agent.OS'], 'Windows_NT' )
displayName: Install Rust on windows
