[CI] Remove gradle wrapper if more than one (#686)

This commit is contained in:
LoveSy 2021-05-27 10:04:55 +08:00 committed by GitHub
parent 7e6c230494
commit c18ec95ce4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -56,6 +56,7 @@ jobs:
ccache -o hash_dir=false
- name: Build with Gradle
run: |
[ $(du -s ~/.gradle/wrapper | awk '{ print $1 }') -gt 250000 ] && rm -rf ~/.gradle/wrapper/*
echo 'org.gradle.caching=true' >> gradle.properties
echo 'org.gradle.parallel=true' >> gradle.properties
echo 'org.gradle.vfs.watch=true' >> gradle.properties