Rust already exists on the platform - update it instead
@@ -284,13 +284,11 @@ jobs:
uses: actions/checkout@v3
# Run build
- - name: Install Rustup using win.rustup.rs
+ - name: Update Rustup
run: |
# disable download progress bar
$ProgressPreference = "SilentlyContinue"
- Invoke-WebRequest https://win.rustup.rs/ -OutFile rustup-init.exe
- .\rustup-init.exe -y --default-host=x86_64-pc-windows-msvc --default-toolchain=none
- del rustup-init.exe
+ rustup update
rustup target add ${{ matrix.target }}
shell: powershell
