Skip to content

Commit

Permalink
Split clang-tidy job into matrix
Browse files Browse the repository at this point in the history
Check tests and examples in individual jobs to speed up CI.
  • Loading branch information
bernhardmgruber committed Feb 27, 2023
1 parent dfd7fac commit 0221e4b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ jobs:
runs-on: ubuntu-22.04
env:
CXX: clang++-15
strategy:
fail-fast: false
matrix:
include:
- files: '../tests'
- files: '../examples'
steps:
- uses: actions/checkout@v3
- name: add LLVM apt repo
Expand Down Expand Up @@ -69,7 +75,7 @@ jobs:
run: |
cd build
sed -i 's/\(-forward-unknown-to-host-compiler\|--generate-code=arch=[^ ]\+\|--expt-extended-lambda\|--extended-lambda\|--expt-relaxed-constexpr\|--use_fast_math\)//g' compile_commands.json # remove NVCC specific flags which clang cannot handle
run-clang-tidy-15 -j $THREADS -header-filter='(tests|include/llama|examples)' -extra-arg=--no-cuda-version-check -extra-arg=-nocudalib -extra-arg=-Wno-unused-command-line-argument '^(?!.*'$PWD').*$'
run-clang-tidy-15 -j $THREADS -header-filter='(tests|include/llama|examples)' -extra-arg=--no-cuda-version-check -extra-arg=-nocudalib -extra-arg=-Wno-unused-command-line-argument ${{ matrix.files }}
coverage:
needs: clang-format
Expand Down

0 comments on commit 0221e4b

Please sign in to comment.