Refresh cache every month, since the cache is immutable

Signed-off-by: Tao He <linzhu.ht@alibaba-inc.com>
This commit is contained in:
Tao He 2021-01-12 20:25:11 +08:00
parent 5258809b36
commit 4ecd0e095b
1 changed files with 6 additions and 2 deletions

View File

@ -21,13 +21,17 @@ jobs:
with:
submodules: true
- name: Get time
run: |
date +'%Y-%m' > snapshot.txt
- name: Cache for cccahe
uses: actions/cache@v2
with:
path: /home/runner/.ccache
key: ${{ runner.os }}-ccache
key: ${{ runner.os }}-ccache-${{ hashFiles('**/snapshot.txt') }}
restore-keys: |
${{ runner.os }}-ccache
${{ runner.os }}-ccache-
- name: Install dependencies for Linux
if: runner.os == 'Linux'