From 9bf835e8102c0864d18376817547966f0a513f4f Mon Sep 17 00:00:00 2001 From: LoveSy Date: Wed, 8 Sep 2021 16:40:33 +0800 Subject: [PATCH] Fix ccache --- .github/ccache.sh | 2 ++ .github/workflows/build.yml | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/ccache.sh b/.github/ccache.sh index 16f310495..bfbbaba85 100644 --- a/.github/ccache.sh +++ b/.github/ccache.sh @@ -15,3 +15,5 @@ case $OS in unzip -j ccache-*-windows-64.zip '*/ccache.exe' ;; esac +mkdir ./.ccache +./ccache -o compiler_check='%compiler% -dumpmachine; %compiler% -dumpversion' diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e7498165e..fb3c3dc9d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -25,7 +25,7 @@ jobs: os: [ ubuntu-latest, windows-latest, macos-latest ] env: NDK_CCACHE: ${{ github.workspace }}/ccache - CCACHE_DIR: ~/.ccache + CCACHE_DIR: ${{ github.workspace }}/.ccache steps: - name: Check out @@ -61,7 +61,7 @@ jobs: uses: actions/cache@v2 with: path: | - ~/.ccache + ${{ github.workspace }}/.ccache ~/.gradle/caches/build-cache-* key: ${{ runner.os }}-build-cache-${{ github.sha }} restore-keys: ${{ runner.os }}-build-cache-