Skip to content

Commit 4f31e71

Browse files
committed
[ci] Test on both x86_64 and aarch64
1 parent e5e89c6 commit 4f31e71

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.github/workflows/test-windows.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,13 @@ on:
44

55
jobs:
66
llvm:
7-
runs-on: windows-latest
7+
strategy:
8+
fail-fast: false
9+
matrix:
10+
arch:
11+
- x86_64
12+
- aarch64
13+
runs-on: ${{startsWith(matrix.arch, 'a') && 'windows-11-arm' || 'windows-latest'}}
814
steps:
915
- name: Install dependencies
1016
run: |
@@ -15,7 +21,7 @@ jobs:
1521
- uses: actions/checkout@v4
1622
- name: Install llvm-mingw
1723
run: |
18-
curl -LO https://github.com/mstorsjo/llvm-mingw/releases/download/nightly/llvm-mingw-nightly-ucrt-x86_64.zip
24+
curl -LO https://github.com/mstorsjo/llvm-mingw/releases/download/nightly/llvm-mingw-nightly-ucrt-${{matrix.arch}}.zip
1925
powershell Expand-Archive llvm-mingw*.zip -DestinationPath .
2026
del llvm-mingw*.zip
2127
mv llvm-mingw* c:\llvm-mingw
@@ -27,7 +33,10 @@ jobs:
2733
cmake ../llvm `
2834
-G Ninja `
2935
-DCMAKE_BUILD_TYPE=Release `
30-
-DLLVM_TARGETS_TO_BUILD=X86 `
36+
-DLLVM_HOST_TRIPLE=${{matrix.arch}}-w64-windows-gnu `
37+
-DCMAKE_SYSTEM_PROCESSOR=${{matrix.arch}} `
38+
-DCMAKE_SYSTEM_NAME=Windows `
39+
-DLLVM_TARGETS_TO_BUILD="X86;AArch64" `
3140
-DLLVM_ENABLE_PROJECTS="clang;lld;clang-tools-extra" `
3241
-DLLVM_WINDOWS_PREFER_FORWARD_SLASH=OFF `
3342
-DCMAKE_C_COMPILER=clang `

0 commit comments

Comments
 (0)