@@ -21,31 +21,46 @@ 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+ - name : Run clang-tidy
59+ uses : ./.github/actions/clang-tidy-native
3360 id : review
3461 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
4162 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
63+ clang_tidy_version : " 20"
4964 - if : steps.review.outputs.total_comments > 0
5065 run : |
5166 echo "clang-tidy run has failed. See previous 'Run clang-tidy' stage logs"
@@ -54,28 +69,46 @@ jobs:
5469 needs :
5570 - clang-tidy
5671 runs-on : ubuntu-24.04
72+ container :
73+ image : ghcr.io/learning-process/ppc-ubuntu:latest
74+ credentials :
75+ username : ${{ github.actor }}
76+ password : ${{ secrets.GITHUB_TOKEN }}
5777 steps :
5878 - uses : actions/checkout@v4
5979 with :
6080 submodules : recursive
81+ fetch-depth : 0
82+
6183 - name : ccache
6284 uses : hendrikmuhs/ccache-action@v1.2
6385 with :
6486 key : ${{ runner.os }}-gcc
65- - uses : ZedThree/clang-tidy-review@v0.21.0
87+ create-symlink : true
88+ max-size : 1G
89+
90+ - name : CMake configure
91+ run : >
92+ cmake -S . -B build -G Ninja
93+ -D CMAKE_C_COMPILER_LAUNCHER=ccache -D CMAKE_CXX_COMPILER_LAUNCHER=ccache
94+ -D CMAKE_BUILD_TYPE=RELEASE -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
95+ env :
96+ CC : gcc-14
97+ CXX : g++-14
98+
99+ - name : Build project
100+ run : |
101+ cmake --build build --parallel
102+ env :
103+ CC : gcc-14
104+ CXX : g++-14
105+
106+ - name : Run clang-tidy
107+ uses : ./.github/actions/clang-tidy-native
66108 id : review
67109 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
74110 exclude : 3rdparty
75- clang_tidy_checks : " "
76- split_workflow : true
77- clang_tidy_version : " 19"
78- lgtm_comment_body : " "
111+ clang_tidy_version : " 20"
79112 - if : steps.review.outputs.total_comments > 0
80113 run : |
81114 echo "clang-tidy run has failed. See previous 'Run clang-tidy' stage logs"
0 commit comments