Skip to content

Commit

Permalink
Update rust.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
oberrich authored Jan 3, 2025
1 parent 2de564d commit 77cafa6
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down

0 comments on commit 77cafa6

Please sign in to comment.