Skip to content

Commit 58876bb

Browse files
committed
Add pch support to cached CI builds
1 parent 5384cb8 commit 58876bb

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

.github/actions/openvic-sim-build/action.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ runs:
4747
shell: bash
4848
run: |
4949
ccache --version | head -n 1
50-
ccache --set-config=sloppiness=pch_defines,time_macros
50+
ccache --set-config=sloppiness=pch_defines,time_macros,include_file_mtime,include_file_ctime
5151
ccache -p | grep sloppiness
5252
5353
- name: Setup MSVC environment
@@ -101,7 +101,6 @@ runs:
101101
`-DGODOTCPP_TARGET=$[env.INPUTS_TARGET]`,
102102
$[env.INPUTS_ENABLE_CACHE] ? `-DCMAKE_C_COMPILER_LAUNCHER=ccache` : ``,
103103
$[env.INPUTS_ENABLE_CACHE] ? `-DCMAKE_CXX_COMPILER_LAUNCHER=ccache` : ``,
104-
$[env.INPUTS_ENABLE_CACHE] ? `-DOPENVIC_USE_PCH=OFF` : ``,
105104
$[env.INPUTS_ENABLE_CACHE] && `$[env.RUNNER_OS]` == 'Windows' ? `-DCMAKE_MSVC_DEBUG_INFORMATION_FORMAT=$<$<CONFIG:Debug,RelWithDebInfo>:Embedded>` : ``
106105
].concat(`$[env.INPUTS_CMAKE_ARGS]`.split(/\s+/)).filter((v) => v.length > 0)
107106
buildPresetCmdString: "[`--build`, `--preset`, `$[env.BUILD_PRESET_NAME]-` + `$[env.INPUTS_CONFIGURATION]`.toLowerCase()]"

0 commit comments

Comments
 (0)