Daan De Meyer | f972602 | 2019-10-10 22:16:49 +0200 | [diff] [blame] | 1 | name: CI |
2 | |||||
Stefan | 2ef137d | 2022-01-11 20:33:39 +0100 | [diff] [blame] | 3 | on: |
4 | push: | ||||
5 | paths-ignore: | ||||
6 | - 'doc/**' | ||||
7 | - 'scripts/**' | ||||
8 | - 'LICENSE.txt' | ||||
9 | - 'README.md' | ||||
Stefan | aaa7253 | 2022-01-18 00:16:44 +0100 | [diff] [blame] | 10 | pull_request: |
Salvage | a212438 | 2022-01-24 21:32:39 +0100 | [diff] [blame] | 11 | paths-ignore: |
12 | - 'doc/**' | ||||
13 | - 'scripts/**' | ||||
14 | - 'LICENSE.txt' | ||||
15 | - 'README.md' | ||||
Daan De Meyer | f972602 | 2019-10-10 22:16:49 +0200 | [diff] [blame] | 16 | |
Stefan | ff693f7 | 2022-01-10 15:08:50 +0100 | [diff] [blame] | 17 | env: |
18 | CTEST_OUTPUT_ON_FAILURE: ON | ||||
19 | CTEST_PARALLEL_LEVEL: 2 | ||||
20 | |||||
Daan De Meyer | f972602 | 2019-10-10 22:16:49 +0200 | [diff] [blame] | 21 | jobs: |
Salvage | df4597d | 2022-05-14 04:46:22 +0200 | [diff] [blame] | 22 | clang-tidy: |
Salvage | 835e2d4 | 2022-05-16 23:55:47 +0200 | [diff] [blame^] | 23 | runs-on: ubuntu-22.04 |
Stefan | bf037c1 | 2022-01-20 13:06:51 +0100 | [diff] [blame] | 24 | |
25 | steps: | ||||
26 | - uses: actions/checkout@v2 | ||||
27 | |||||
Salvage | c0300de | 2022-05-14 04:48:42 +0200 | [diff] [blame] | 28 | - name: Install |
Salvage | 08a28cf | 2022-05-16 23:35:50 +0200 | [diff] [blame] | 29 | run: sudo apt-get install -y ninja-build clang-tidy-14 |
Salvage | c0300de | 2022-05-14 04:48:42 +0200 | [diff] [blame] | 30 | |
Stefan | bf037c1 | 2022-01-20 13:06:51 +0100 | [diff] [blame] | 31 | - name: Generate |
Salvage | e2e4a74 | 2022-05-14 05:17:12 +0200 | [diff] [blame] | 32 | run: cmake -B build -S . -G Ninja -D CMAKE_CXX_COMPILER=clang++ -D CMAKE_EXPORT_COMPILE_COMMANDS=ON -D CMAKE_CXX_CLANG_TIDY="clang-tidy;-warnings-as-errors=*" |
Stefan | bf037c1 | 2022-01-20 13:06:51 +0100 | [diff] [blame] | 33 | |
34 | - name: Build | ||||
35 | run: cmake --build build |