Skip to content

Commit c64f02e

Browse files
committed
use LLVM 20.1.8 on win-arm64 builds
1 parent 1c59367 commit c64f02e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/windows-arm.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,13 @@ jobs:
4848
4949
- name: Download and install LLVM installer
5050
run: |
51-
Invoke-WebRequest https://github.com/llvm/llvm-project/releases/download/llvmorg-19.1.5/LLVM-19.1.5-woa64.exe -UseBasicParsing -OutFile LLVM-woa64.exe
51+
Invoke-WebRequest https://github.com/llvm/llvm-project/releases/download/llvmorg-20.1.8/LLVM-20.1.8-woa64.exe -UseBasicParsing -OutFile LLVM-woa64.exe
52+
$expectedHash = "7c4ac97eb2ae6b960ca5f9caf3ff6124c8d2a18cc07a7840a4d2ea15537bad8e"
53+
$fileHash = (Get-FileHash -Path "LLVM-woa64.exe" -Algorithm SHA256).Hash
54+
if ($fileHash -ne $expectedHash) {
55+
Write-Error "Checksum verification failed. The downloaded file may be corrupted or tampered with."
56+
exit 1
57+
}
5258
Start-Process -FilePath ".\LLVM-woa64.exe" -ArgumentList "/S" -Wait
5359
echo "C:\Program Files\LLVM\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
5460

0 commit comments

Comments
 (0)