[ci] update ccache config (#998)

This commit is contained in:
LoveSy 2021-08-24 22:21:19 +08:00 committed by GitHub
parent e9faf9f76d
commit 9d56cab7a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -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