From aeb431999ee4a8d68fc4cb90d12b4f25a4ed5d49 Mon Sep 17 00:00:00 2001 From: Mikhail Lopatkin Date: Sat, 25 Dec 2021 20:19:39 +0300 Subject: [PATCH] Enable Gradle build cache for everything Issue: #175 --- .github/actions/common-linux-setup/action.yml | 4 ++-- .gitignore | 1 - gradle.properties | 1 + 3 files changed, 3 insertions(+), 3 deletions(-) create mode 100644 gradle.properties diff --git a/.github/actions/common-linux-setup/action.yml b/.github/actions/common-linux-setup/action.yml index f48b06fa..7e72029d 100644 --- a/.github/actions/common-linux-setup/action.yml +++ b/.github/actions/common-linux-setup/action.yml @@ -13,9 +13,9 @@ runs: /root/.gradle/wrapper/** !**.lock !**/gc.properties - key: ${{ runner.os }}-gradle-cache-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.*', 'buildSrc/**', '.github/actions/common-linux-setup/**') }} + key: ${{ runner.os }}-gradle-cache-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.*', 'buildSrc/**', '**/gradle.properties', '.github/actions/common-linux-setup/**') }} restore-keys: | - ${{ runner.os }}-gradle6-cache- + ${{ runner.os }}-gradle-cache- - run: test -e /root/.gradle/caches && find /root/.gradle/caches -type f -name '*.lock' -delete -o -name 'gc.properties' -delete || echo Skipped cleanup shell: bash name: Cleanup excessively cached stuff diff --git a/.gitignore b/.gitignore index 61adcd34..01fe8575 100644 --- a/.gitignore +++ b/.gitignore @@ -12,4 +12,3 @@ gen/ *.zip *.iml logview.properties -gradle.properties diff --git a/gradle.properties b/gradle.properties new file mode 100644 index 00000000..16089002 --- /dev/null +++ b/gradle.properties @@ -0,0 +1 @@ +org.gradle.caching=true