mirror of
https://github.com/actions/cache.git
synced 2025-03-13 11:47:00 +00:00
Merge bc94205084
into 26c48dce83
This commit is contained in:
commit
e76afaae67
1 changed files with 4 additions and 0 deletions
|
@ -134,12 +134,16 @@ We cache the elements of the Cabal store separately, as the entirety of `~/.caba
|
||||||
|
|
||||||
## Java - Gradle
|
## 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
|
```yaml
|
||||||
- uses: actions/cache@v2
|
- uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
~/.gradle/caches
|
~/.gradle/caches
|
||||||
~/.gradle/wrapper
|
~/.gradle/wrapper
|
||||||
|
!~/.gradle/wrapper/dists/**/gradle*.zip
|
||||||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
|
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-gradle-
|
${{ runner.os }}-gradle-
|
||||||
|
|
Loading…
Add table
Reference in a new issue