diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 8ac4e9d..fb52f19 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -41,18 +41,19 @@ jobs: # Ensure winget is installed and up-to-date if (-not (Get-Command winget -ErrorAction SilentlyContinue)) { Write-Host "winget is not installed. Installing now..." - Invoke-WebRequest -Uri https://aka.ms/Microsoft.AppInstaller -OutFile "$env:TEMP\AppInstaller.msi" - Start-Process msiexec.exe -ArgumentList "/i", "$env:TEMP\AppInstaller.msi", "/quiet", "/norestart" -Wait + Invoke-WebRequest -Uri https://aka.ms/Microsoft.AppInstaller -OutFile "$env:RUNNER_TEMP\AppInstaller.msi" + Start-Process msiexec.exe -ArgumentList "/i", "$env:RUNNER_TEMP\AppInstaller.msi", "/quiet", "/norestart" -Wait } else { Write-Host "winget is already installed." } # Install Visual Studio Build Tools with no confirmation prompts - winget install -e --id Microsoft.VisualStudio.2022.BuildTools --accept-source-agreements --accept-package-agreements + winget install -e --id Microsoft.VisualStudio.2022.BuildTools --accept-source-agreements --accept-package-agreements | Out-Null + - name: Verify Installation run: | # Check that the Visual Studio Build Tools were installed correctly - & "$env:ProgramFiles(x86)\Microsoft Visual Studio\2022\BuildTools\Common7\Tools\vswhere.exe" -latest -property installationPath + & "$env:ProgramFiles(x86)\Microsoft Visual Studio\Installer\vswhere.exe" -latest -property installationPath - name: Install Rust (nightly, aarch64) if: matrix.os == 'windows-11-preview_aarch64' run: |