fix(ci): update cache key to include additional CMake files
- Modified the cache key in the CI workflow to include `src/**/*.cmake`, ensuring that changes in CMake files are properly accounted for in the caching mechanism. - This adjustment enhances the efficiency of the CI process by improving cache hit rates and reducing unnecessary rebuilds. Benefits: - Optimizes the CI workflow by ensuring that all relevant CMake configurations are considered, leading to faster build times and more reliable dependency management.
This commit is contained in:
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@@ -163,7 +163,7 @@ jobs:
|
||||
path: |
|
||||
build/_deps
|
||||
build/vcpkg_installed
|
||||
key: cmake-deps-${{ runner.os }}-${{ matrix.cc }}-${{ hashFiles('CMakeLists.txt', 'cmake/**', 'src/**/CMakeLists.txt', 'test/CMakeLists.txt') }}
|
||||
key: cmake-deps-${{ runner.os }}-${{ matrix.cc }}-${{ hashFiles('CMakeLists.txt', 'cmake/**', 'src/**/CMakeLists.txt', 'src/**/*.cmake', 'test/CMakeLists.txt') }}
|
||||
restore-keys: |
|
||||
cmake-deps-${{ runner.os }}-${{ matrix.cc }}-
|
||||
|
||||
|
||||
Reference in New Issue
Block a user