blob: daf9c1d91c39d0207f93064aedd416a9850ea77b [file] [log] [blame]
name: CI
on:
push:
paths-ignore:
- 'doc/**'
- 'scripts/**'
- 'LICENSE.txt'
- 'README.md'
pull_request:
paths-ignore:
- 'doc/**'
- 'scripts/**'
- 'LICENSE.txt'
- 'README.md'
env:
CTEST_OUTPUT_ON_FAILURE: ON
CTEST_PARALLEL_LEVEL: 2
jobs:
clang-tidy:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- name: Install
run: sudo apt-get install -y ninja-build clang-tidy-14
- name: Generate
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=*"
- name: Build
run: cmake --build build