From 9d56cab7a442313edbc0ac047350bddbe66af539 Mon Sep 17 00:00:00 2001 From: LoveSy Date: Tue, 24 Aug 2021 22:21:19 +0800 Subject: [PATCH] [ci] update ccache config (#998) --- .github/workflows/core.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/core.yml b/.github/workflows/core.yml index 4736115f..e6866e49 100644 --- a/.github/workflows/core.yml +++ b/.github/workflows/core.yml @@ -61,9 +61,10 @@ jobs: - name: Install ccache run: | sudo apt-get install -y ccache - ccache -o max_size=2G + ccache -o max_size=1G ccache -o hash_dir=false - ccache -o compiler_check=content + ccache -o compiler_check='%compiler% -dumpmachine; %compiler% -dumpversion' + ccache -zp - name: Build with Gradle env: NDK_CCACHE: ccache @@ -76,6 +77,7 @@ jobs: echo 'org.gradle.jvmargs=-Xmx2048m' >> gradle.properties echo 'android.native.buildOutput=verbose' >> gradle.properties ./gradlew zipRelease zipDebug + ccache -s - name: Prepare artifact if: success() id: prepareArtifact