blob: 196119f4f659d0900eaf9ebed2e0586e9dabd1ab [file] [log] [blame]
Daan De Meyerf9726022019-10-10 22:16:49 +02001name: CI
2
Stefan2ef137d2022-01-11 20:33:39 +01003on:
4 push:
5 paths-ignore:
6 - 'doc/**'
7 - 'scripts/**'
8 - 'LICENSE.txt'
9 - 'README.md'
Stefanaaa72532022-01-18 00:16:44 +010010 pull_request:
Salvagea2124382022-01-24 21:32:39 +010011 paths-ignore:
12 - 'doc/**'
13 - 'scripts/**'
14 - 'LICENSE.txt'
15 - 'README.md'
Daan De Meyerf9726022019-10-10 22:16:49 +020016
Stefanff693f72022-01-10 15:08:50 +010017env:
18 CTEST_OUTPUT_ON_FAILURE: ON
19 CTEST_PARALLEL_LEVEL: 2
20
Daan De Meyerf9726022019-10-10 22:16:49 +020021jobs:
Salvagedf4597d2022-05-14 04:46:22 +020022 clang-tidy:
Salvage835e2d42022-05-16 23:55:47 +020023 runs-on: ubuntu-22.04
Stefanbf037c12022-01-20 13:06:51 +010024
25 steps:
26 - uses: actions/checkout@v2
27
Salvagec0300de2022-05-14 04:48:42 +020028 - name: Install
Salvage6494aa42022-05-28 11:41:47 +020029 run: sudo apt-get install -y ninja-build clang-tidy-14
Salvagec0300de2022-05-14 04:48:42 +020030
Stefanbf037c12022-01-20 13:06:51 +010031 - name: Generate
Salvage54879542022-05-29 16:38:35 +020032 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-14;-warnings-as-errors=*" -- "-k 0"
Stefanbf037c12022-01-20 13:06:51 +010033
34 - name: Build
35 run: cmake --build build