[CI] make gradle cache old (#711)

This commit is contained in:
LoveSy 2021-05-31 19:50:24 +08:00 committed by GitHub
parent df71d64e9b
commit 4da161f6e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -57,6 +57,7 @@ jobs:
- name: Build with Gradle
run: |
[ $(du -s ~/.gradle/wrapper | awk '{ print $1 }') -gt 250000 ] && rm -rf ~/.gradle/wrapper/*
find ~/.gradle/caches -exec touch -d "2 days ago" {} +
echo 'org.gradle.caching=true' >> gradle.properties
echo 'org.gradle.parallel=true' >> gradle.properties
echo 'org.gradle.vfs.watch=true' >> gradle.properties