steps: - ${{ if eq(parameters.os, 'Windows') }}: - script: | choco install wget visualstudio2017-workload-vctools -y --no-progress displayName: Install VC 2017 Build Tools - script: | curl -sSf -o rustup-init.exe https://win.rustup.rs rustup-init.exe -y --default-toolchain stable set PATH=%PATH%;%USERPROFILE%\.cargo\bin echo "##vso[task.setvariable variable=PATH]%PATH%" displayName: Install Rust Toolchain - template: install-lcow.yml - ${{ if ne(parameters.os, 'Windows') }}: - script: | curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain stable export PATH=$PATH:$HOME/.cargo/bin echo "##vso[task.setvariable variable=PATH]$PATH" displayName: Install Rust Toolchain