cpp_lint.yml 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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_format:
  26. # runs-on: ubuntu-18.04
  27. # steps:
  28. # - uses: actions/checkout@v2
  29. # - name: Install clang-format
  30. # run: |
  31. # sudo apt-get install clang-format-9 -qyy
  32. #
  33. # - name: Run clang-format
  34. # run: |
  35. # source ./util/ci/clang-format.sh
  36. # check_format
  37. # env:
  38. # CLANG_FORMAT: clang-format-9
  39. clang_tidy:
  40. runs-on: ubuntu-18.04
  41. steps:
  42. - uses: actions/checkout@v2
  43. - name: Install deps
  44. run: |
  45. sudo apt-get install clang-tidy-9 -qyy
  46. source ./util/ci/common.sh
  47. install_linux_deps
  48. - name: Run clang-tidy
  49. run: |
  50. ./util/ci/clang-tidy.sh