blob: daf9c1d91c39d0207f93064aedd416a9850ea77b [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
Salvage08a28cf2022-05-16 23:35:50 +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
Salvagee2e4a742022-05-14 05:17:12 +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;-warnings-as-errors=*"
Stefanbf037c12022-01-20 13:06:51 +010033
34 - name: Build
35 run: cmake --build build