name: lint-clang-format

on: [push, pull_request]

jobs:
  lint:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v4
    - uses: DoozyX/clang-format-lint-action@v0.18
      with:
        source: './src'
        exclude: './src/contrib'
        extensions: 'h,cc'
        clangFormatVersion: 18
