Skip to content

Commit 39d7064

Browse files
committed
fixup! Improve CI caching
1 parent 00a6421 commit 39d7064

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/c-cpp.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ jobs:
4343
id: gen-cache-key
4444
shell: bash
4545
run: |
46-
echo "cache-key=${{ matrix.os }}-$(git submodule foreach --recursive git rev-parse HEAD)-${{ hashFiles('CMakeLists.txt') }}" >> $GITHUB_OUTPUT
46+
git submodule foreach --recursive git rev-parse HEAD > submodule_hashes.txt
47+
echo "cache-key=${{ matrix.os }}-${{ hashFiles('submodule_hashes.txt') }}-${{ hashFiles('CMakeLists.txt') }}" >> $GITHUB_OUTPUT
48+
rm submodule_hashes.txt
4749
4850
- name: Set up CPM cache
4951
id: setup-cpm-cache

0 commit comments

Comments
 (0)