Skip to content

Commit b04812b

Browse files
authored
CI-unixish-docker.yml: disabled precompiled headers when using ccache with CMake (danmar#4943)
1 parent cfca3a6 commit b04812b

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/CI-unixish-docker.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ jobs:
1717

1818
runs-on: ubuntu-22.04
1919

20+
# TODO: is this actually applied to the guest?
21+
env:
22+
# TODO: figure out why there are cache misses with PCH enabled
23+
CCACHE_SLOPPINESS: pch_defines,time_macros
24+
2025
container:
2126
image: ${{ matrix.image }}
2227

@@ -66,15 +71,15 @@ jobs:
6671
run: |
6772
mkdir cmake.output
6873
cd cmake.output
69-
cmake -G "Unix Makefiles" -DHAVE_RULES=On -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache ..
74+
cmake -G "Unix Makefiles" -DHAVE_RULES=On -DCMAKE_DISABLE_PRECOMPILE_HEADERS=On -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache ..
7075
cmake --build . -- -j$(nproc)
7176
7277
- name: CMake build
7378
if: matrix.image != 'centos:7' && matrix.image != 'ubuntu:14.04' && matrix.image != 'ubuntu:16.04'
7479
run: |
7580
mkdir cmake.output
7681
cd cmake.output
77-
cmake -G "Unix Makefiles" -DHAVE_RULES=On -DBUILD_TESTS=On -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache ..
82+
cmake -G "Unix Makefiles" -DHAVE_RULES=On -DBUILD_TESTS=On -DCMAKE_DISABLE_PRECOMPILE_HEADERS=On -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache ..
7883
cmake --build . -- -j$(nproc)
7984
8085
- name: Run CMake test

0 commit comments

Comments
 (0)