Skip to content

Commit

Permalink
Split clang-tidy CI test into 4 to improve performances (ECP-WarpX#4747)
Browse files Browse the repository at this point in the history
* split clang-tidy checks to improve performances

* rename folders and tests

* fix concurrency

* Simplify

---------

Co-authored-by: Axel Huebl <[email protected]>
  • Loading branch information
2 people authored and JustinRayAngus committed Mar 12, 2024
1 parent 184fc12 commit f2591b3
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions .github/workflows/clang_tidy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ concurrency:

jobs:
run_clang_tidy:
name: clang-tidy
strategy:
matrix:
dim: [1, 2, RZ, 3]
name: clang-tidy-${{ matrix.dim }}D
runs-on: ubuntu-22.04
if: github.event.pull_request.draft == false
steps:
Expand All @@ -35,16 +38,16 @@ jobs:
export CXX=$(which clang++-15)
export CC=$(which clang-15)
cmake -S . -B build_clang_tidy \
-DCMAKE_VERBOSE_MAKEFILE=ON \
-DWarpX_DIMS="1;2;RZ;3" \
-DWarpX_MPI=ON \
-DWarpX_COMPUTE=OMP \
-DWarpX_PSATD=ON \
-DWarpX_QED=ON \
-DWarpX_QED_TABLE_GEN=ON \
-DWarpX_OPENPMD=ON \
-DWarpX_PRECISION=SINGLE \
cmake -S . -B build_clang_tidy \
-DCMAKE_VERBOSE_MAKEFILE=ON \
-DWarpX_DIMS="${{ matrix.dim }}" \
-DWarpX_MPI=ON \
-DWarpX_COMPUTE=OMP \
-DWarpX_PSATD=ON \
-DWarpX_QED=ON \
-DWarpX_QED_TABLE_GEN=ON \
-DWarpX_OPENPMD=ON \
-DWarpX_PRECISION=SINGLE \
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache
cmake --build build_clang_tidy -j 4
Expand Down

0 comments on commit f2591b3

Please sign in to comment.