| 1 |
name: Build Dependencies(Win-ARM64) |
| 2 |
description: "Setup LLVM for Win-ARM64 builds" |
| 3 |
|
| 4 |
runs: |
| 5 |
using: "composite" |
| 6 |
steps: |
| 7 |
- name: Install LLVM with checksum verification |
| 8 |
shell: pwsh |
| 9 |
run: | |
| 10 |
Invoke-WebRequest https://github.com/llvm/llvm-project/releases/download/llvmorg-20.1.6/LLVM-20.1.6-woa64.exe -UseBasicParsing -OutFile LLVM-woa64.exe |
| 11 |
$expectedHash = "92f69a1134e32e54b07d51c6e24d9594852f6476f32c3d70471ae00fffc2d462" |
| 12 |
$fileHash = (Get-FileHash -Path "LLVM-woa64.exe" -Algorithm SHA256).Hash |
| 13 |
if ($fileHash -ne $expectedHash) { |
| 14 |
Write-Error "Checksum verification failed. The downloaded file may be corrupted or tampered with." |
| 15 |
exit 1 |
| 16 |
} |
| 17 |
Start-Process -FilePath ".\LLVM-woa64.exe" -ArgumentList "/S" -Wait |
| 18 |
echo "C:\Program Files\LLVM\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append |
| 19 |
echo "CC=clang-cl" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append |
| 20 |
echo "CXX=clang-cl" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append |
| 21 |
echo "FC=flang-new" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append |
| 22 |
|