[Test] Keep trying the paths for ccache

This commit is contained in:
tangxifan 2020-11-24 18:10:52 -07:00
parent 91709abe80
commit df98c83d33
1 changed files with 2 additions and 2 deletions

View File

@ -149,7 +149,7 @@ jobs:
- name: ccache cache files
uses: actions/cache@v2
with:
path: $ENV{GITHUB_WORKSPACE}/.ccache
path: ${{runner.workspace}}/.ccache
key: ${{ matrix.config.name }}-ccache-${{ steps.ccache_cache_timestamp.outputs.timestamp }}
restore-keys: |
${{ matrix.config.name }}-ccache-
@ -158,7 +158,7 @@ jobs:
- name: Configure ccache
shell: cmake -P {0}
run: |
file(TO_CMAKE_PATH "$ENV{GITHUB_WORKSPACE}" ccache_basedir)
file(TO_CMAKE_PATH ${{runner.workspace}} ccache_basedir)
set(ENV{CCACHE_BASEDIR} "${ccache_basedir}")
set(ENV{CCACHE_DIR} "${ccache_basedir}/.ccache")
set(ENV{CCACHE_COMPRESS} "true")