cpp_lint.yml 780 B

1234567891011121314151617181920212223242526272829303132333435363738
  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. - '**/CMakeLists.txt'
  11. - 'cmake/Modules/**'
  12. - 'util/ci/**'
  13. - '.github/workflows/**.yml'
  14. pull_request:
  15. paths:
  16. - 'lib/**.[ch]'
  17. - 'lib/**.cpp'
  18. - 'src/**.[ch]'
  19. - 'src/**.cpp'
  20. - '**/CMakeLists.txt'
  21. - 'cmake/Modules/**'
  22. - 'util/ci/**'
  23. - '.github/workflows/**.yml'
  24. jobs:
  25. clang_tidy:
  26. runs-on: ubuntu-20.04
  27. steps:
  28. - uses: actions/checkout@v3
  29. - name: Install deps
  30. run: |
  31. source ./util/ci/common.sh
  32. install_linux_deps clang-tidy-9
  33. - name: Run clang-tidy
  34. run: |
  35. ./util/ci/clang-tidy.sh