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 f91ee5a commit 6df93d4
Showing 1 changed file with 6 additions and 14 deletions.
20 changes: 6 additions & 14 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,27 +22,19 @@ jobs:
target: aarch64-pc-windows-msvc
runs-on: ${{ matrix.os }}
steps:
- name: Download and install Visual Studio Installer
if: matrix.os == 'windows-11-preview_aarch64'
run: |
Invoke-WebRequest -Uri "https://aka.ms/vs/17/release/vs_buildtools.exe" -OutFile "$env:RUNNER_TEMP\vs_buildtools.exe"
Start-Process -FilePath "$env:RUNNER_TEMP\vs_buildtools.exe" -ArgumentList "--add Microsoft.VisualStudio.Component.Clang --add Microsoft.VisualStudio.Component.VC.tools.arm64 --includeRecommended --norestart --wait" -NoNewWindow -Wait
Write-Host "Visual Studio installation complete."
- name: Download and install Git for Windows (ARM64)
if: matrix.os == 'windows-11-preview_aarch64'
run: |
Invoke-WebRequest -Uri "https://github.com/git-for-windows/git/releases/download/v2.48.0-rc1.windows.1/Git-2.48.0-rc1-arm64.exe" -OutFile "$env:RUNNER_TEMP\install-git-arm64.exe"
Start-Process -FilePath "$env:RUNNER_TEMP\install-git-arm64.exe" -ArgumentList "/VERYSILENT" -NoNewWindow -Wait
Add-Content -Path $env:GITHUB_PATH -Value "C:\Program Files\Git\cmd" -Encoding utf8
Add-Content -Path $env:GITHUB_PATH -Value "C:\Program Files\Git\bin" -Encoding utf8
- name: Download and install Visual Studio Installer
if: matrix.os == 'windows-11-preview_aarch64'
run: |
Invoke-WebRequest -Uri "https://aka.ms/vs/17/release/vs_buildtools.exe" -OutFile "$env:RUNNER_TEMP\vs_buildtools.exe"
Start-Process -FilePath "$env:RUNNER_TEMP\vs_buildtools.exe" -ArgumentList `
"--add Microsoft.VisualStudio.Workload.UniversalBuildTools", `
"--add Microsoft.VisualStudio.Component.VC.Llvm.Clang", `
"--add Microsoft.VisualStudio.Workload.MSBuildTools", `
"--add Microsoft.VisualStudio.Workload.VCTool", `
"--add Microsoft.VisualStudio.Workload.UniversalBuildTools", `
"--add Microsoft.VisualStudio.Component.Windows11SDK.22000", `
"--includeRecommended --includeOptional --norestart --wait" `
-NoNewWindow -Wait
Write-Host "Visual Studio installation complete."
- name: Install Rust (nightly, aarch64)
if: matrix.os == 'windows-11-preview_aarch64'
run: |
Expand Down

0 comments on commit 6df93d4

Please sign in to comment.