Refresh cache every month, since the cache is immutable
Signed-off-by: Tao He <linzhu.ht@alibaba-inc.com>
This commit is contained in:
parent
5258809b36
commit
4ecd0e095b
|
|
@ -21,13 +21,17 @@ jobs:
|
||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
|
|
||||||
|
- name: Get time
|
||||||
|
run: |
|
||||||
|
date +'%Y-%m' > snapshot.txt
|
||||||
|
|
||||||
- name: Cache for cccahe
|
- name: Cache for cccahe
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: /home/runner/.ccache
|
path: /home/runner/.ccache
|
||||||
key: ${{ runner.os }}-ccache
|
key: ${{ runner.os }}-ccache-${{ hashFiles('**/snapshot.txt') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-ccache
|
${{ runner.os }}-ccache-
|
||||||
|
|
||||||
- name: Install dependencies for Linux
|
- name: Install dependencies for Linux
|
||||||
if: runner.os == 'Linux'
|
if: runner.os == 'Linux'
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue