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 77114fc commit 8e20c34
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,13 @@ jobs:
refreshenv
where bash
- name: Download and install Visual Studio Installer
if: matrix.os == 'windows-11-preview_aarch64'
run: |
# Define the temporary folder path
$tempFolder = $env:RUNNER_TEMP
# Download the Visual Studio Installer for ARM64 to the temporary folder
Invoke-WebRequest -Uri "https://aka.ms/vs/17/release/vs_installer_arm64.exe" -OutFile "$tempFolder\vs_installer.exe"
# Run the installer with necessary components for C++ development
Start-Process -FilePath "$tempFolder\vs_installer.exe" -ArgumentList "--quiet --wait --add Microsoft.VisualStudio.Workload.NativeDesktop --includeRecommended --norestart" -NoNewWindow -Wait
Invoke-WebRequest -Uri "https://aka.ms/vs/17/release/vs_installer_arm64.exe" -OutFile "$env:RUNNER_TEMP\vs_installer.exe"
Start-Process -FilePath "$env:RUNNER_TEMP\vs_installer.exe" -ArgumentList "--quiet --wait --add Microsoft.VisualStudio.Workload.NativeDesktop --includeRecommended --norestart" -NoNewWindow -Wait
Write-Host "Visual Studio installation complete."
- name: Add msbuild to PATH
if: matrix.os == 'windows-11-preview_aarch64'
uses: microsoft/setup-msbuild@v2
with:
msbuild-architecture: arm64
Expand Down

0 comments on commit 8e20c34

Please sign in to comment.