Skip to content

Commit f2fbb94

Browse files
committed
Simplify
1 parent dd6250e commit f2fbb94

File tree

4 files changed

+17
-233
lines changed

4 files changed

+17
-233
lines changed

.github/workflows/clang_tidy_1D.yml .github/workflows/clang_tidy.yml

+17-14
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
1-
name: 🧹 clang-tidy-1D
1+
name: 🧹 clang-tidy
22

33
on: [push, pull_request]
44

55
concurrency:
6-
group: ${{ github.ref }}-${{ github.head_ref }}-clangtidy-1D
6+
group: ${{ github.ref }}-${{ github.head_ref }}-clangtidy
77
cancel-in-progress: true
88

99
jobs:
1010
run_clang_tidy:
11-
name: clang-tidy-1D
11+
strategy:
12+
matrix:
13+
dim: [1, 2, RZ, 3]
14+
name: clang-tidy-${{ matrix.dim }}${{ matrix.dim != 'RZ' && 'D' }}
1215
runs-on: ubuntu-22.04
1316
if: github.event.pull_request.draft == false
1417
steps:
@@ -35,19 +38,19 @@ jobs:
3538
export CXX=$(which clang++-15)
3639
export CC=$(which clang-15)
3740
38-
cmake -S . -B build_clang_tidy_1D \
39-
-DCMAKE_VERBOSE_MAKEFILE=ON \
40-
-DWarpX_DIMS="1" \
41-
-DWarpX_MPI=ON \
42-
-DWarpX_COMPUTE=OMP \
43-
-DWarpX_PSATD=ON \
44-
-DWarpX_QED=ON \
45-
-DWarpX_QED_TABLE_GEN=ON \
46-
-DWarpX_OPENPMD=ON \
47-
-DWarpX_PRECISION=SINGLE \
41+
cmake -S . -B build_clang_tidy \
42+
-DCMAKE_VERBOSE_MAKEFILE=ON \
43+
-DWarpX_DIMS="${{ matrix.dim }}" \
44+
-DWarpX_MPI=ON \
45+
-DWarpX_COMPUTE=OMP \
46+
-DWarpX_PSATD=ON \
47+
-DWarpX_QED=ON \
48+
-DWarpX_QED_TABLE_GEN=ON \
49+
-DWarpX_OPENPMD=ON \
50+
-DWarpX_PRECISION=SINGLE \
4851
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache
4952
50-
cmake --build build_clang_tidy_1D -j 4
53+
cmake --build build_clang_tidy -j 4
5154
5255
${{github.workspace}}/.github/workflows/source/makeMakefileForClangTidy.py --input ${{github.workspace}}/ccache.log.txt
5356
make -j4 --keep-going -f clang-tidy-ccache-misses.mak \

.github/workflows/clang_tidy_2D.yml

-73
This file was deleted.

.github/workflows/clang_tidy_3D.yml

-73
This file was deleted.

.github/workflows/clang_tidy_RZ.yml

-73
This file was deleted.

0 commit comments

Comments
 (0)