Skip to content

Commit e5ccec0

Browse files
authored
[CI] Simplify ccache usage (#634)
1 parent 35d00e2 commit e5ccec0

File tree

4 files changed

+7
-8
lines changed

4 files changed

+7
-8
lines changed

.github/workflows/codeql.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ jobs:
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
@@ -54,5 +53,8 @@ jobs:
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

.github/workflows/mac.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ jobs:
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

.github/workflows/static-analysis-pr.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ jobs:
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
@@ -56,6 +55,8 @@ jobs:
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
@@ -91,7 +92,6 @@ jobs:
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

.github/workflows/ubuntu.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ jobs:
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

0 commit comments

Comments
 (0)