@@ -115,6 +115,8 @@ jobs:
115115 target : x86_64-apple-darwin
116116 - host : macos-latest
117117 target : aarch64-apple-darwin
118+ - host : blacksmith-4vcpu-windows-2025
119+ target : aarch64-pc-windows-msvc
118120 - host : blacksmith-4vcpu-windows-2025
119121 target : x86_64-pc-windows-msvc
120122 - host : blacksmith-4vcpu-ubuntu-2404
@@ -212,6 +214,27 @@ jobs:
212214 opencode-app-id : ${{ vars.OPENCODE_APP_ID }}
213215 opencode-app-secret : ${{ secrets.OPENCODE_APP_SECRET }}
214216
217+ - name : Setup Windows ARM64 clang
218+ if : runner.os == 'Windows' && matrix.settings.target == 'aarch64-pc-windows-msvc'
219+ shell : pwsh
220+ run : |
221+ $vswhere = Join-Path ${env:ProgramFiles(x86)} "Microsoft Visual Studio\Installer\vswhere.exe"
222+ if (!(Test-Path $vswhere)) { throw "vswhere.exe not found at $vswhere" }
223+ $root = & $vswhere -latest -products * -property installationPath
224+ if (!$root) { throw "Visual Studio installation not found" }
225+ $llvm = Join-Path $root "VC\Tools\Llvm"
226+ $bin = @(
227+ (Join-Path $llvm "x64\bin"),
228+ (Join-Path $llvm "bin")
229+ ) | Where-Object { Test-Path (Join-Path $_ "clang.exe") } | Select-Object -First 1
230+ if (!$bin -and (Test-Path $llvm)) {
231+ $bin = Get-ChildItem -Path $llvm -Filter clang.exe -Recurse -File | Select-Object -First 1 | ForEach-Object { $_.DirectoryName }
232+ }
233+ if (!$bin) { throw "clang.exe not found under $llvm" }
234+ $env:PATH = "$bin;$env:PATH"
235+ Add-Content -Path $env:GITHUB_PATH -Value $bin
236+ clang --version
237+
215238 - name : Build and upload artifacts
216239 uses : tauri-apps/tauri-action@390cbe447412ced1303d35abe75287949e43437a
217240 timeout-minutes : 60
@@ -254,6 +277,9 @@ jobs:
254277 - host : macos-latest
255278 target : aarch64-apple-darwin
256279 platform_flag : --mac --arm64
280+ - host : " blacksmith-4vcpu-windows-2025"
281+ target : aarch64-pc-windows-msvc
282+ platform_flag : --win --arm64
257283 - host : " blacksmith-4vcpu-windows-2025"
258284 target : x86_64-pc-windows-msvc
259285 platform_flag : --win
0 commit comments