cpp_lint.yml 856 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. name: cpp_lint
  2. # lint on c/cpp changes or workflow changes
  3. on:
  4. push:
  5. paths:
  6. - 'lib/**.[ch]'
  7. - 'lib/**.cpp'
  8. - 'src/**.[ch]'
  9. - 'src/**.cpp'
  10. - 'irr/**.[ch]'
  11. - 'irr/**.cpp'
  12. - '**/CMakeLists.txt'
  13. - 'cmake/Modules/**'
  14. - 'util/ci/**'
  15. - '.github/workflows/**.yml'
  16. pull_request:
  17. paths:
  18. - 'lib/**.[ch]'
  19. - 'lib/**.cpp'
  20. - 'src/**.[ch]'
  21. - 'src/**.cpp'
  22. - '**/CMakeLists.txt'
  23. - 'cmake/Modules/**'
  24. - 'util/ci/**'
  25. - '.github/workflows/**.yml'
  26. env:
  27. CLANG_TIDY: clang-tidy-15
  28. jobs:
  29. clang_tidy:
  30. runs-on: ubuntu-22.04
  31. steps:
  32. - uses: actions/checkout@v4
  33. - name: Install deps
  34. run: |
  35. source ./util/ci/common.sh
  36. install_linux_deps $CLANG_TIDY
  37. - name: Run clang-tidy
  38. run: |
  39. ./util/ci/clang-tidy.sh