Skip to content

Add spdlog demo app example #30

Add spdlog demo app example

Add spdlog demo app example #30

Workflow file for this run

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