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