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:
scawful
2025-10-15 20:14:26 -04:00
parent a88fcf65e3
commit 7a3eacc5c7

View File

@@ -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 }}-