You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
939 B

2 months ago
  1. name: clang-tidy
  2. on:
  3. push: {}
  4. pull_request: {}
  5. jobs:
  6. job:
  7. name: run-clang-tidy
  8. runs-on: ubuntu-latest
  9. strategy:
  10. fail-fast: false
  11. steps:
  12. - uses: actions/checkout@v3
  13. - name: install clang-tidy
  14. run: sudo apt update && sudo apt -y install clang-tidy
  15. - name: create build environment
  16. run: cmake -E make_directory ${{ runner.workspace }}/_build
  17. - name: configure cmake
  18. shell: bash
  19. working-directory: ${{ runner.workspace }}/_build
  20. run: >
  21. cmake $GITHUB_WORKSPACE
  22. -DBENCHMARK_ENABLE_ASSEMBLY_TESTS=OFF
  23. -DBENCHMARK_ENABLE_LIBPFM=OFF
  24. -DBENCHMARK_DOWNLOAD_DEPENDENCIES=ON
  25. -DCMAKE_C_COMPILER=clang
  26. -DCMAKE_CXX_COMPILER=clang++
  27. -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
  28. -DGTEST_COMPILE_COMMANDS=OFF
  29. - name: run
  30. shell: bash
  31. working-directory: ${{ runner.workspace }}/_build
  32. run: run-clang-tidy