@@ -21,31 +21,45 @@ concurrency:
2121jobs:
2222 clang-tidy:
2323 runs-on: ubuntu-24.04
24+ container:
25+ image: ghcr.io/learning-process/ppc-ubuntu:latest
26+ credentials:
27+ username: ${{ github.actor }}
28+ password: ${{ secrets.GITHUB_TOKEN }}
2429 steps:
2530 - uses: actions/checkout@v4
2631 with:
2732 submodules: recursive
33+ fetch-depth: 0
34+
2835 - name: ccache
2936 uses: hendrikmuhs/ccache-action@v1.2
3037 with:
3138 key: ${{ runner.os }}-clang
32- - uses: ZedThree/clang-tidy-review@v0.21.0
39+ create-symlink: true
40+ max-size: 1G
41+
42+ - name: CMake configure
43+ run: >
44+ cmake -S . -B build -G Ninja
45+ -D CMAKE_C_COMPILER_LAUNCHER=ccache -D CMAKE_CXX_COMPILER_LAUNCHER=ccache
46+ -D CMAKE_BUILD_TYPE=RELEASE -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
47+ env:
48+ CC: clang-20
49+ CXX: clang++-20
50+
51+ - name: Build project
52+ run: |
53+ cmake --build build --parallel
54+ env:
55+ CC: clang-20
56+ CXX: clang++-20
57+
58+ - uses: ./.github/actions/clang-tidy-native
3359 id: review
3460 with:
35- build_dir: build
36- apt_packages: openmpi-bin,openmpi-common,libopenmpi-dev,ninja-build,libomp-19-dev,valgrind
37- cmake_command: >
38- cmake -S . -B build -G Ninja
39- -D CMAKE_C_COMPILER_LAUNCHER=ccache -D CMAKE_CXX_COMPILER_LAUNCHER=ccache
40- -D CMAKE_BUILD_TYPE=RELEASE -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
4161 exclude: 3rdparty
42- clang_tidy_checks: ""
43- split_workflow: true
44- clang_tidy_version: "19"
45- lgtm_comment_body: ""
46- env:
47- CC: clang-19
48- CXX: clang++-19
62+ clang_tidy_version: "20"
4963 - if: steps.review.outputs.total_comments > 0
5064 run: |
5165 echo "clang-tidy run has failed. See previous 'Run clang-tidy' stage logs"
@@ -54,28 +68,45 @@ jobs:
5468 needs:
5569 - clang-tidy
5670 runs-on: ubuntu-24.04
71+ container:
72+ image: ghcr.io/learning-process/ppc-ubuntu:latest
73+ credentials:
74+ username: ${{ github.actor }}
75+ password: ${{ secrets.GITHUB_TOKEN }}
5776 steps:
5877 - uses: actions/checkout@v4
5978 with:
6079 submodules: recursive
80+ fetch-depth: 0
81+
6182 - name: ccache
6283 uses: hendrikmuhs/ccache-action@v1.2
6384 with:
6485 key: ${{ runner.os }}-gcc
65- - uses: ZedThree/clang-tidy-review@v0.21.0
86+ create-symlink: true
87+ max-size: 1G
88+
89+ - name: CMake configure
90+ run: >
91+ cmake -S . -B build -G Ninja
92+ -D CMAKE_C_COMPILER_LAUNCHER=ccache -D CMAKE_CXX_COMPILER_LAUNCHER=ccache
93+ -D CMAKE_BUILD_TYPE=RELEASE -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
94+ env:
95+ CC: gcc-14
96+ CXX: g++-14
97+
98+ - name: Build project
99+ run: |
100+ cmake --build build --parallel
101+ env:
102+ CC: gcc-14
103+ CXX: g++-14
104+
105+ - uses: ./.github/actions/clang-tidy-native
66106 id: review
67107 with:
68- build_dir: build
69- apt_packages: openmpi-bin,openmpi-common,libopenmpi-dev,ninja-build,libomp-19-dev,valgrind
70- cmake_command: >
71- cmake -S . -B build -G Ninja
72- -D CMAKE_C_COMPILER_LAUNCHER=ccache -D CMAKE_CXX_COMPILER_LAUNCHER=ccache
73- -D CMAKE_BUILD_TYPE=RELEASE -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
74108 exclude: 3rdparty
75- clang_tidy_checks: ""
76- split_workflow: true
77- clang_tidy_version: "19"
78- lgtm_comment_body: ""
109+ clang_tidy_version: "20"
79110 - if: steps.review.outputs.total_comments > 0
80111 run: |
81112 echo "clang-tidy run has failed. See previous 'Run clang-tidy' stage logs"
0 commit comments