@@ -20,130 +20,7 @@ permissions:
2020
2121
2222jobs :
23- windows-msvc :
24- runs-on : windows-latest
25- steps :
26- - name : Install dependencies
27- run : |
28- choco install -y ninja
29- # We need a newer llvm-lib, in order to build the OpenMP interface library
30- choco install -y llvm --version=17.0.6
31- - uses : actions/checkout@v4
32- - name : Set up the MSVC dev environment
33- uses : ilammy/msvc-dev-cmd@v1
34- - name : Setup ccache
35- uses : hendrikmuhs/ccache-action@v1
36- with :
37- max-size : 700M
38- key : clangcl-17
39- variant : sccache
40- - name : Build and test
41- run : |
42- mkdir build
43- cd build
44- cmake ../llvm `
45- -G Ninja `
46- -DCMAKE_BUILD_TYPE=Release `
47- -DLLVM_TARGETS_TO_BUILD=X86 `
48- -DLLVM_ENABLE_PROJECTS="clang;openmp" `
49- -DCMAKE_C_COMPILER=clang-cl `
50- -DCMAKE_CXX_COMPILER=clang-cl `
51- -DLLVM_LIT_ARGS="-v --time-tests --show-unsupported" `
52- -DCMAKE_C_COMPILER_LAUNCHER=sccache `
53- -DCMAKE_CXX_COMPILER_LAUNCHER=sccache
54- ninja check-openmp
55-
56- windows-msvc-separate :
57- runs-on : windows-latest
58- steps :
59- - name : Install dependencies
60- run : |
61- choco install -y ninja
62- - uses : actions/checkout@v4
63- - name : Set up the MSVC dev environment
64- uses : ilammy/msvc-dev-cmd@v1
65- - name : Setup ccache
66- uses : hendrikmuhs/ccache-action@v1
67- with :
68- max-size : 700M
69- key : clangcl-default
70- variant : sccache
71- - name : Build Clang and test tools
72- run : |
73- mkdir build
74- cd build
75- cmake ../llvm `
76- -G Ninja `
77- -DCMAKE_BUILD_TYPE=Release `
78- -DLLVM_TARGETS_TO_BUILD=X86 `
79- -DLLVM_ENABLE_PROJECTS="clang" `
80- -DCMAKE_C_COMPILER=clang-cl `
81- -DCMAKE_CXX_COMPILER=clang-cl `
82- -DCMAKE_C_COMPILER_LAUNCHER=sccache `
83- -DCMAKE_CXX_COMPILER_LAUNCHER=sccache
84- ninja
85- echo "$PWD\bin" | Out-File -FilePath $Env:GITHUB_PATH -Encoding utf8 -Append
86- echo "LLVM_TOOLS=$PWD\bin" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf8 -Append
87- - name : Build and test OpenMP
88- run : |
89- cd openmp
90- mkdir build
91- cd build
92- cmake .. `
93- -G Ninja `
94- -DCMAKE_BUILD_TYPE=Release `
95- -DOPENMP_LLVM_TOOLS_DIR="$Env:LLVM_TOOLS" `
96- -DCMAKE_C_COMPILER=clang-cl `
97- -DCMAKE_CXX_COMPILER=clang-cl `
98- -DOPENMP_LIT_ARGS="-v --time-tests --show-unsupported" `
99- -DOPENMP_TEST_C_COMPILER=clang `
100- -DOPENMP_TEST_CXX_COMPILER=clang++
101- ninja check-openmp
102-
10323 llvm-mingw :
104- runs-on : windows-latest
105- steps :
106- - name : Install dependencies
107- run : |
108- choco install -y ninja
109- - uses : actions/checkout@v4
110- - name : Install llvm-mingw
111- run : |
112- curl -LO https://github.com/mstorsjo/llvm-mingw/releases/download/20231128/llvm-mingw-20231128-ucrt-x86_64.zip
113- powershell Expand-Archive llvm-mingw*.zip -DestinationPath .
114- del llvm-mingw*.zip
115- mv llvm-mingw* c:\llvm-mingw
116- echo "c:\llvm-mingw\bin" | Out-File -FilePath $Env:GITHUB_PATH -Encoding utf8 -Append
117- - name : Setup ccache
118- uses : hendrikmuhs/ccache-action@v1
119- with :
120- max-size : 700M
121- key : llvm-mingw
122- variant : ccache
123- - name : Build and test
124- run : |
125- mkdir build
126- cd build
127- cmake ../llvm `
128- -G Ninja `
129- -DCMAKE_BUILD_TYPE=Release `
130- -DLLVM_TARGETS_TO_BUILD=X86 `
131- -DLLVM_ENABLE_PROJECTS="clang;compiler-rt;openmp" `
132- -DCLANG_DEFAULT_RTLIB=compiler-rt `
133- -DCLANG_DEFAULT_UNWINDLIB=libunwind `
134- -DCLANG_DEFAULT_CXX_STDLIB=libc++ `
135- -DCLANG_DEFAULT_LINKER=lld `
136- -DCOMPILER_RT_USE_BUILTINS_LIBRARY=TRUE `
137- -DSANITIZER_CXX_ABI=libc++ `
138- -DCMAKE_ASM_MASM_COMPILER=llvm-ml `
139- -DLIBOMP_ASMFLAGS=-m64 `
140- -DLLVM_LIT_ARGS="-v --time-tests --show-unsupported" `
141- -DCMAKE_C_COMPILER_LAUNCHER=ccache `
142- -DCMAKE_CXX_COMPILER_LAUNCHER=ccache
143- ninja compiler-rt
144- ninja check-openmp
145-
146- llvm-mingw-separate :
14724 runs-on : windows-latest
14825 steps :
14926 - name : Install dependencies
@@ -198,71 +75,3 @@ jobs:
19875 -DOPENMP_LIT_ARGS="-v --time-tests --show-unsupported" `
19976 -DLIBOMP_ASMFLAGS=-m64
20077 ninja check-openmp
201-
202- linux :
203- runs-on : ubuntu-latest
204- steps :
205- - name : Install dependencies
206- run : |
207- sudo apt-get update && sudo apt-get install ninja-build
208- - uses : actions/checkout@v4
209- - name : Setup ccache
210- uses : hendrikmuhs/ccache-action@v1
211- with :
212- max-size : 700M
213- key : linux
214- - name : Build and test
215- run : |
216- mkdir build
217- cd build
218- cmake ../llvm \
219- -G Ninja \
220- -DCMAKE_BUILD_TYPE=Release \
221- -DLLVM_TARGETS_TO_BUILD=X86 \
222- -DLLVM_ENABLE_PROJECTS="clang;openmp" \
223- -DOPENMP_ENABLE_LIBOMPTARGET=OFF \
224- -DLLVM_LIT_ARGS="-v --time-tests --show-unsupported" \
225- -DCMAKE_C_COMPILER_LAUNCHER=ccache \
226- -DCMAKE_CXX_COMPILER_LAUNCHER=ccache
227- ninja check-openmp
228-
229- linux-separate :
230- runs-on : ubuntu-latest
231- steps :
232- - name : Install dependencies
233- run : |
234- sudo apt-get update && sudo apt-get install ninja-build
235- - uses : actions/checkout@v4
236- - name : Setup ccache
237- uses : hendrikmuhs/ccache-action@v1
238- with :
239- max-size : 700M
240- key : linux
241- - name : Build Clang and test tools
242- run : |
243- mkdir build
244- cd build
245- cmake ../llvm \
246- -G Ninja \
247- -DCMAKE_BUILD_TYPE=Release \
248- -DLLVM_TARGETS_TO_BUILD=X86 \
249- -DLLVM_ENABLE_PROJECTS="clang" \
250- -DCMAKE_C_COMPILER_LAUNCHER=ccache \
251- -DCMAKE_CXX_COMPILER_LAUNCHER=ccache
252- ninja not FileCheck clang
253- echo $(pwd)/bin > $GITHUB_PATH
254- echo LLVM_TOOLS=$(pwd)/bin > $GITHUB_ENV
255- - name : Build and test OpenMP
256- run : |
257- cd openmp
258- mkdir build
259- cd build
260- cmake .. \
261- -G Ninja \
262- -DCMAKE_BUILD_TYPE=Release \
263- -DOPENMP_LLVM_TOOLS_DIR="$LLVM_TOOLS" \
264- -DCMAKE_C_COMPILER=clang \
265- -DCMAKE_CXX_COMPILER=clang++ \
266- -DOPENMP_ENABLE_LIBOMPTARGET=OFF \
267- -DOPENMP_LIT_ARGS="-v --time-tests --show-unsupported"
268- ninja check-openmp
0 commit comments