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 c1b3986 commit 536913b
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,11 @@ jobs:
target: aarch64-pc-windows-msvc
runs-on: ${{ matrix.os }}
steps:
- name: Install Git for Windows (Bash)
if: matrix.os == 'windows-11-preview_aarch64'
shell: powershell
- name: Download and install Git for Windows (ARM64)
run: |
Set-ExecutionPolicy Bypass -Scope Process -Force
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072
iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
choco install git.install --params "'/GitAndUnixToolsOnPath /WindowsTerminal /NoAutoCrlf'" -y --no-progress
Get-Content C:\ProgramData\chocolatey\logs\chocolatey.log
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
Import-Module $env:ChocolateyInstall\helpers\chocolateyProfile.psm1
refreshenv
where bash
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\Git-Installer.exe"
Start-Process -FilePath "$env:RUNNER_TEMP\Git-Installer.exe" -ArgumentList "/VERYSILENT /NORESTART /SUPPRESSMSGBOXES" -NoNewWindow -Wait
Write-Host "Git for Windows (ARM64) installation complete."
- name: Download and install Visual Studio Installer
if: matrix.os == 'windows-11-preview_aarch64'
run: |
Expand All @@ -47,6 +38,7 @@ jobs:
run: |
Invoke-WebRequest -Uri "https://github.com/llvm/llvm-project/releases/download/llvmorg-18.1.8/LLVM-18.1.8-woa64.exe" -OutFile "$env:RUNNER_TEMP\LLVM-18.1.8-woa64.exe"
Start-Process -Wait -FilePath "$env:RUNNER_TEMP\LLVM-18.1.8-woa64.exe" -ArgumentList "/quiet"
Write-Host "LLVM installation complete."
- name: Verify LLVM installation
if: matrix.os == 'windows-11-preview_aarch64'
run: llvm --version
Expand Down

0 comments on commit 536913b

Please sign in to comment.