File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change 4
4
5
5
jobs :
6
6
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'}}
8
14
steps :
9
15
- name : Install dependencies
10
16
run : |
15
21
- uses : actions/checkout@v4
16
22
- name : Install llvm-mingw
17
23
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
19
25
powershell Expand-Archive llvm-mingw*.zip -DestinationPath .
20
26
del llvm-mingw*.zip
21
27
mv llvm-mingw* c:\llvm-mingw
27
33
cmake ../llvm `
28
34
-G Ninja `
29
35
-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" `
31
40
-DLLVM_ENABLE_PROJECTS="clang;lld;clang-tools-extra" `
32
41
-DLLVM_WINDOWS_PREFER_FORWARD_SLASH=OFF `
33
42
-DCMAKE_C_COMPILER=clang `
You can’t perform that action at this time.
0 commit comments