Skip to content

Commit 59da8e6

Browse files
Fix CCache config
1 parent 7af6ccc commit 59da8e6

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/pull-request-checks.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
# we'll keep 5 times that around per OS
1919
# to account for different versions/different
2020
# flags
21-
# Bump so CI runs again 1
21+
# Bump so CI runs again 2
2222
CCACHE_MAXSIZE: 500Mi
2323
steps:
2424
- uses: actions/checkout@v2
@@ -30,9 +30,12 @@ jobs:
3030
uses: actions/cache@v2
3131
with:
3232
path: ~/.ccache
33-
key: ${{ runner.os }}
33+
key: ccache-${{ runner.os }}-${{ hashFiles('**') }}
34+
restore-keys: ccache-${{ runner.os }}
3435
- name: Zero CCache statistics
35-
run: ccache -z
36+
run: |
37+
ccache -s
38+
ccache -z
3639
- name: Configure using CMake
3740
run: |
3841
mkdir build

0 commit comments

Comments
 (0)