Update caching logic in CI workflows to enable lookup-only mode and adjust ccache usage for non-Windows platforms

This commit is contained in:
snider 2025-10-06 21:24:50 +01:00
parent c731a7216c
commit 34d465e583
2 changed files with 2 additions and 1 deletions

View file

@ -25,6 +25,7 @@ jobs:
id: cache id: cache
uses: actions/cache@v4 uses: actions/cache@v4
with: with:
lookup-only: true
path: | path: |
${{ github.workspace }}/build/sdk ${{ github.workspace }}/build/sdk
${{ github.workspace }}/build/bin ${{ github.workspace }}/build/bin

View file

@ -30,7 +30,7 @@ endif()
include(DocBuilder) include(DocBuilder)
option (USE_CCACHE "Use ccache if a usable instance is found" ON) option (USE_CCACHE "Use ccache if a usable instance is found" ON)
if (USE_CCACHE) if (USE_CCACHE AND NOT WIN32)
include(FindCcache) include(FindCcache)
else() else()
message(STATUS "ccache deselected") message(STATUS "ccache deselected")