From 2c899f56d3c6d7d739c344b1927012dab77fd2e3 Mon Sep 17 00:00:00 2001 From: Vladimir Sitnikov Date: Wed, 19 Aug 2020 10:20:01 +0300 Subject: [PATCH 1/2] Add a reference to gradle-cache-action to Java-Gradle configuration --- examples.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples.md b/examples.md index 4e3f64a..ecd6135 100644 --- a/examples.md +++ b/examples.md @@ -133,6 +133,9 @@ We cache the elements of the Cabal store separately, as the entirety of `~/.caba ## Java - Gradle +Consider using [gradle-cache-action](https://github.com/burrunan/gradle-cache-action) as it provides fine-grained +[@actions/cache](https://github.com/actions/toolkit/tree/main/packages/cache)-based caching for Gradle builds. + ```yaml - uses: actions/cache@v2 with: From bc9420508446d35481fed9a7020c0eeb855bf3f9 Mon Sep 17 00:00:00 2001 From: Vladimir Sitnikov Date: Wed, 19 Aug 2020 10:46:15 +0300 Subject: [PATCH 2/2] Avoid caching 100-150MiB Gradle distribution: !~/.gradle/wrapper/dists/**/gradle*.zip --- examples.md | 1 + 1 file changed, 1 insertion(+) diff --git a/examples.md b/examples.md index ecd6135..a0d6e3f 100644 --- a/examples.md +++ b/examples.md @@ -142,6 +142,7 @@ Consider using [gradle-cache-action](https://github.com/burrunan/gradle-cache-ac path: | ~/.gradle/caches ~/.gradle/wrapper + !~/.gradle/wrapper/dists/**/gradle*.zip key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} restore-keys: | ${{ runner.os }}-gradle-