File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Run tests on Windows
2
+ on :
3
+ push :
4
+
5
+ jobs :
6
+ llvm :
7
+ runs-on : windows-latest
8
+ steps :
9
+ - name : Install dependencies
10
+ run : |
11
+ choco install -y ninja
12
+ - name : Configure Git core.autocrlf
13
+ run : |
14
+ git config --global core.autocrlf false
15
+ - uses : actions/checkout@v4
16
+ - name : Install llvm-mingw
17
+ run : |
18
+ curl -LO https://github.com/mstorsjo/llvm-mingw/releases/download/nightly/llvm-mingw-nightly-ucrt-x86_64.zip
19
+ powershell Expand-Archive llvm-mingw*.zip -DestinationPath .
20
+ del llvm-mingw*.zip
21
+ mv llvm-mingw* c:\llvm-mingw
22
+ echo "c:\llvm-mingw\bin" | Out-File -FilePath $Env:GITHUB_PATH -Encoding utf8 -Append
23
+ - name : Build the project and unittests
24
+ run : |
25
+ mkdir build
26
+ cd build
27
+ cmake ../llvm `
28
+ -G Ninja `
29
+ -DCMAKE_BUILD_TYPE=Release `
30
+ -DLLVM_TARGETS_TO_BUILD=X86 `
31
+ -DLLVM_ENABLE_PROJECTS="clang;lld;clang-tools-extra" `
32
+ -DLLVM_WINDOWS_PREFER_FORWARD_SLASH=OFF `
33
+ -DCMAKE_C_COMPILER=clang `
34
+ -DCMAKE_CXX_COMPILER=clang++ `
35
+ -DLLVM_LIT_ARGS="-v --time-tests"
36
+ ninja test-depends
37
+ - name : Run tests
38
+ run : |
39
+ cd build
40
+ ninja check
You can’t perform that action at this time.
0 commit comments