Closed yeastplume closed 4 years ago
Since rustup
is installed you need to add:
macOS and Linux:
rustup toolchain install $RUSTUP_TOOLCHAIN
rustup default $RUSTUP_TOOLCHAIN
and Windows:
rustup toolchain install %RUSTUP_TOOLCHAIN%
rustup default %RUSTUP_TOOLCHAIN%
It looks like Rustup is not included in Windows Server 2019 (https://github.com/actions/virtual-environments/blob/master/images/win/Windows2019-Readme.md). You might want to try the above. Otherwise you need to add:
- script: |
curl -sSf -o rustup-init.exe https://win.rustup.rs
rustup-init.exe -y --default-toolchain %RUSTUP_TOOLCHAIN%
displayName: Install Rust
Unfortunately on windows that brings us right back to the original issue:
@yeastplume can you try this on Windows:
rustup-init.exe toolchain install %RUSTUP_TOOLCHAIN%
rustup-init.exe default %RUSTUP_TOOLCHAIN%
and remove this line:
rustup-init.exe -y --default-toolchain %RUSTUP_TOOLCHAIN%
Wondering if this is necessary to export again the Cargo path on Windows (echo "##vso[task.setvariable variable=PATH;]%PATH%;%USERPROFILE%\.cargo\bin"
). Not sure which one Windows is using. Or simply try to display the toolchain before cargo to be sure.
Found the reason https://github.com/rust-lang/rustup/issues/2203
Further update to CI settings and fix for warnings:
ubuntu-latest
,windows-latest
andmacos-latest
imagesdyn
warningmem::uninitialized()
tomem::MaybeUninit::uninit().assume_init()