File tree Expand file tree Collapse file tree 5 files changed +19
-10
lines changed Expand file tree Collapse file tree 5 files changed +19
-10
lines changed Original file line number Diff line number Diff line change 4242 if : matrix.language == 'cpp'
4343 run : >
4444 cmake -S . -B build -G Ninja
45- -D CMAKE_C_COMPILER_LAUNCHER=ccache -D CMAKE_CXX_COMPILER_LAUNCHER=ccache
4645 -D CMAKE_BUILD_TYPE=RELEASE
4746 env :
4847 CC : gcc-14
5453 env :
5554 CC : gcc-14
5655 CXX : g++-14
56+ - name : Show ccache stats
57+ if : matrix.language == 'cpp'
58+ run : ccache --show-stats
5759 - name : Perform CodeQL Analysis
5860 uses : github/codeql-action/analyze@v3
Original file line number Diff line number Diff line change 2929 - name : CMake configure
3030 run : >
3131 cmake -S . -B build -G Ninja
32- -D CMAKE_C_COMPILER_LAUNCHER=ccache -D CMAKE_CXX_COMPILER_LAUNCHER=ccache
3332 -DCMAKE_C_FLAGS="-I$(brew --prefix)/opt/libomp/include"
3433 -DCMAKE_CXX_FLAGS="-I$(brew --prefix)/opt/libomp/include"
3534 -D CMAKE_BUILD_TYPE=${{ matrix.build_type }} -DCMAKE_INSTALL_PREFIX=install
Original file line number Diff line number Diff line change 4343 - name : CMake configure
4444 run : >
4545 cmake -S . -B build -G Ninja
46- -D CMAKE_C_COMPILER_LAUNCHER=ccache -D CMAKE_CXX_COMPILER_LAUNCHER=ccache
4746 -D CMAKE_BUILD_TYPE=RELEASE -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
4847 env :
4948 CC : clang-21
5655 CC : clang-21
5756 CXX : clang++-21
5857
58+ - name : Show ccache stats
59+ run : ccache --show-stats
5960 - name : Run clang-tidy
6061 uses : ./.github/actions/clang-tidy-native
6162 id : review
9192 - name : CMake configure
9293 run : >
9394 cmake -S . -B build -G Ninja
94- -D CMAKE_C_COMPILER_LAUNCHER=ccache -D CMAKE_CXX_COMPILER_LAUNCHER=ccache
9595 -D CMAKE_BUILD_TYPE=RELEASE -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
9696 env :
9797 CC : gcc-14
@@ -104,6 +104,8 @@ jobs:
104104 CC : gcc-14
105105 CXX : g++-14
106106
107+ - name : Show ccache stats
108+ run : ccache --show-stats
107109 - name : Run clang-tidy
108110 uses : ./.github/actions/clang-tidy-native
109111 id : review
Original file line number Diff line number Diff line change 2626 - name : CMake configure
2727 run : >
2828 cmake -S . -B build -G Ninja
29- -D CMAKE_C_COMPILER_LAUNCHER=ccache -D CMAKE_CXX_COMPILER_LAUNCHER=ccache
3029 -D CMAKE_BUILD_TYPE=${{ matrix.build_type }} -DCMAKE_INSTALL_PREFIX=install
3130 env :
3231 CC : gcc-14
@@ -136,7 +135,6 @@ jobs:
136135 - name : CMake configure
137136 run : >
138137 cmake -S . -B build -G Ninja
139- -D CMAKE_C_COMPILER_LAUNCHER=ccache -D CMAKE_CXX_COMPILER_LAUNCHER=ccache
140138 -D CMAKE_BUILD_TYPE=RELEASE -DCMAKE_INSTALL_PREFIX=install
141139 env :
142140 CC : clang-21
@@ -240,7 +238,6 @@ jobs:
240238 - name : CMake configure
241239 run : >
242240 cmake -S . -B build -G Ninja
243- -D CMAKE_C_COMPILER_LAUNCHER=ccache -D CMAKE_CXX_COMPILER_LAUNCHER=ccache
244241 -D CMAKE_BUILD_TYPE=RelWithDebInfo
245242 -D ENABLE_ADDRESS_SANITIZER=ON -D ENABLE_UB_SANITIZER=ON -D ENABLE_LEAK_SANITIZER=ON
246243 -D CMAKE_INSTALL_PREFIX=install
@@ -351,7 +348,6 @@ jobs:
351348 - name : CMake configure
352349 run : >
353350 cmake -S . -B build -G Ninja
354- -D CMAKE_C_COMPILER_LAUNCHER=ccache -D CMAKE_CXX_COMPILER_LAUNCHER=ccache
355351 -D CMAKE_BUILD_TYPE=RELEASE
356352 -D CMAKE_VERBOSE_MAKEFILE=ON -D USE_COVERAGE=ON
357353 - name : Build project
Original file line number Diff line number Diff line change @@ -15,11 +15,16 @@ jobs:
1515 with :
1616 submodules : recursive
1717 - uses : ./.github/actions/setup-windows-toolchain
18+ - name : ccache
19+ uses : hendrikmuhs/ccache-action@v1.2
20+ with :
21+ key : ${{ runner.os }}-msvc
22+ create-symlink : true
23+ max-size : 1G
1824 - name : CMake configure
1925 shell : bash
2026 run : >
2127 cmake -S . -B build -G Ninja -D CMAKE_C_COMPILER=cl -DCMAKE_CXX_COMPILER=cl
22- -D CMAKE_C_COMPILER_LAUNCHER=ccache -D CMAKE_CXX_COMPILER_LAUNCHER=ccache
2328 -D CMAKE_BUILD_TYPE=${{ matrix.build_type }} -DCMAKE_INSTALL_PREFIX=install
2429 - name : Build project
2530 shell : bash
9297 with :
9398 submodules : recursive
9499 - uses : ./.github/actions/setup-windows-toolchain
100+ - name : ccache
101+ uses : hendrikmuhs/ccache-action@v1.2
102+ with :
103+ key : ${{ runner.os }}-clang
104+ create-symlink : true
105+ max-size : 1G
95106 - name : Setup LLVM
96107 uses : KyleMayes/install-llvm-action@v2
97108 with :
@@ -100,7 +111,6 @@ jobs:
100111 run : >
101112 cmake -S . -B build -G Ninja
102113 -D CMAKE_C_COMPILER=clang-cl -D CMAKE_CXX_COMPILER=clang-cl
103- -D CMAKE_C_COMPILER_LAUNCHER=ccache -D CMAKE_CXX_COMPILER_LAUNCHER=ccache
104114 -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=install
105115 -D CMAKE_PREFIX_PATH="C:/Program Files/LLVM"
106116 env :
You can’t perform that action at this time.
0 commit comments