cpp_lint.yml 899 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. - 'irr/**.[ch]'
  23. - 'irr/**.cpp'
  24. - '**/CMakeLists.txt'
  25. - 'cmake/Modules/**'
  26. - 'util/ci/**'
  27. - '.github/workflows/**.yml'
  28. env:
  29. CLANG_TIDY: clang-tidy-15
  30. jobs:
  31. clang_tidy:
  32. runs-on: ubuntu-22.04
  33. steps:
  34. - uses: actions/checkout@v4
  35. - name: Install deps
  36. run: |
  37. source ./util/ci/common.sh
  38. install_linux_deps $CLANG_TIDY
  39. - name: Run clang-tidy
  40. run: |
  41. ./util/ci/clang-tidy.sh