Skip to content

Commit 7ee7156

Browse files
WebKit ARM64 Builderclaude
andcommitted
Fix LLVM installation: Use ARM64 version instead of x64
Scoop installs x64 LLVM on ARM64 Windows. Manually download and install LLVM 19.1.4 ARM64 (WoA64) version from official LLVM releases. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 9736e4e commit 7ee7156

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,8 +264,15 @@ jobs:
264264
echo "$env:USERPROFILE\scoop\shims" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
265265
}
266266
267-
# Install all tools via Scoop except Ruby
268-
scoop install cmake ninja python perl llvm
267+
# Install tools via Scoop (except Ruby and LLVM which need ARM64 versions)
268+
scoop install cmake ninja python perl
269+
270+
# Install LLVM ARM64 manually (Scoop downloads x64 on ARM64)
271+
$llvmUrl = "https://github.com/llvm/llvm-project/releases/download/llvmorg-19.1.4/LLVM-19.1.4-woa64.exe"
272+
$llvmExe = "$env:TEMP\llvm.exe"
273+
Invoke-WebRequest -Uri $llvmUrl -OutFile $llvmExe
274+
Start-Process -FilePath $llvmExe -ArgumentList "/S", "/D=C:\LLVM" -Wait
275+
echo "C:\LLVM\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
269276
270277
# Install Ruby manually since Scoop's Ruby fails on ARM64
271278
$rubyUrl = "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-3.3.6-1/rubyinstaller-devkit-3.3.6-1-x64.exe"

0 commit comments

Comments
 (0)