1
0
mirror of https://github.com/actions/cache.git synced 2025-06-30 18:42:49 +08:00

Update for Kotlin DSL

This commit is contained in:
Raj Saxena 2020-03-11 14:34:42 +01:00 committed by GitHub
parent 826785142a
commit e277e12f46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -98,13 +98,15 @@ We cache the elements of the Cabal store separately, as the entirety of `~/.caba
key: ${{ runner.os }}-${{ matrix.ghc }}-dist-newstyle
```
## Java - Gradle
## Java/Kotlin - Gradle
```yaml
- uses: actions/cache@v1
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
# Use the following for kotlin DSL
# key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle.kts') }}
restore-keys: |
${{ runner.os }}-gradle-
```