Skip to content

Commit

Permalink
Fix clang tidy workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
EZoni committed Nov 19, 2024
1 parent 44b99c0 commit bbb1df6
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/clang_tidy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,22 +38,22 @@ jobs:
if: ${{ github.event.pull_request.draft == 'false' }}
steps:
- name: Checkout code
if: ${{ needs.skip_checks.outputs.skip == 'false' }}
#if: ${{ needs.skip_checks.outputs.skip == 'false' }}
uses: actions/checkout@v4
- name: Install dependencies
if: ${{ needs.skip_checks.outputs.skip == 'false' }}
#if: ${{ needs.skip_checks.outputs.skip == 'false' }}
run: |
.github/workflows/dependencies/clang15.sh
- name: Set up cache
if: ${{ needs.skip_checks.outputs.skip == 'false' }}
#if: ${{ needs.skip_checks.outputs.skip == 'false' }}
uses: actions/cache@v4
with:
path: ~/.cache/ccache
key: ccache-${{ github.workflow }}-${{ github.job }}-git-${{ github.sha }}
restore-keys: |
ccache-${{ github.workflow }}-${{ github.job }}-git-
- name: Build WarpX & run clang-tidy
if: ${{ needs.skip_checks.outputs.skip == 'false' }}
#if: ${{ needs.skip_checks.outputs.skip == 'false' }}
run: |
export CCACHE_COMPRESS=1
export CCACHE_COMPRESSLEVEL=10
Expand All @@ -63,16 +63,16 @@ jobs:
ccache -z
export CXX=$(which clang++-15)
export CC=$(which clang-15)
cmake -S . -B build_clang_tidy \
-DCMAKE_VERBOSE_MAKEFILE=ON \
-DWarpX_DIMS="${{ matrix.dim }}" \
-DWarpX_MPI=ON \
-DWarpX_COMPUTE=OMP \
-DWarpX_FFT=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_FFT=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
${{github.workspace}}/.github/workflows/source/makeMakefileForClangTidy.py --input ${{github.workspace}}/ccache.log.txt
Expand Down

0 comments on commit bbb1df6

Please sign in to comment.