Add spdlog demo app example #30
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: clang-tidy | |
| on: [push, pull_request] | |
| jobs: | |
| lint: | |
| name: Check clang-tidy | |
| runs-on: ubuntu-latest | |
| env: | |
| CMAKE_PRESET_NAME: gcc-Release | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: { fetch-depth: 0 } | |
| - name: Install CMake and Ninja | |
| uses: lukka/get-cmake@latest | |
| with: | |
| cmakeVersion: ^3.28.0 | |
| ninjaVersion: ^1.11.0 | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get -qq update | |
| sudo apt-get -qq install -y g++ gcc clang-tidy --no-install-recommends | |
| - name: Cache build artifacts | |
| id: cache-build | |
| uses: actions/cache@v4 | |
| with: | |
| path: build/ | |
| key: | | |
| ${{ runner.os }}-clang-tidy-${{ hashFiles('**/CMakeLists.txt','cmake/**/*.cmake','.clang-tidy') }} | |
| restore-keys: | | |
| ${{ runner.os }}-clang-tidy- | |
| - name: Configure project | |
| run: cmake --preset $CMAKE_PRESET_NAME -DENABLE_CLANG_TIDY=ON | |
| - name: Run clang-tidy | |
| run: cmake --build --preset $CMAKE_PRESET_NAME --target clang-tidy |