From 77cafa6dfa48eaf7b6fc81345c0ab9b3ecce6465 Mon Sep 17 00:00:00 2001 From: 52 69 63 68 61 72 64 Date: Fri, 3 Jan 2025 06:04:50 +0100 Subject: [PATCH] Update rust.yml --- .github/workflows/rust.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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: |