File tree Expand file tree Collapse file tree 1 file changed +53
-0
lines changed Expand file tree Collapse file tree 1 file changed +53
-0
lines changed Original file line number Diff line number Diff line change 1+ name : libclc Tests
2+
3+ on :
4+ push :
5+ branches :
6+ - ' release/**'
7+ paths :
8+ - ' clang/**'
9+ - ' llvm/**'
10+ - ' libclc/**'
11+ - ' .github/workflows/libclc-tests.yml'
12+ pull_request :
13+ paths :
14+ - ' clang/**'
15+ - ' llvm/**'
16+ - ' libclc/**'
17+ - ' .github/workflows/libclc-tests.yml'
18+
19+ jobs :
20+ build_libclc :
21+ name : libclc test
22+ runs-on : ${{ matrix.os }}
23+ strategy :
24+ fail-fast : false
25+ matrix :
26+ os :
27+ - ubuntu-latest
28+ # Disable build on windows, because I can't figure out where llvm-config is.
29+ # - windows-latest
30+ - macOS-latest
31+ steps :
32+ - name : Setup Windows
33+ if : startsWith(matrix.os, 'windows')
34+ uses : llvm/actions/setup-windows@master
35+ with :
36+ arch : amd64
37+ - name : Install Ninja
38+ uses : llvm/actions/install-ninja@master
39+ - uses : actions/checkout@v1
40+ with :
41+ fetch-depth : 1
42+ - name : Build clang
43+ uses : llvm/actions/build-test-llvm-project@master
44+ with :
45+ cmake_args : -G Ninja -DLLVM_ENABLE_PROJECTS="clang" -DCMAKE_BUILD_TYPE=Release
46+ build_target : " "
47+ - name : Build and test libclc
48+ run : |
49+ mkdir libclc-build
50+ cd libclc-build
51+ cmake -G Ninja ../libclc -DLLVM_CONFIG=../build/bin/llvm-config
52+ ninja
53+ ninja test
You can’t perform that action at this time.
0 commit comments