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:
|
||||
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'
|
||||
|
|
|
|||
Loading…
Reference in New Issue