Cache the gradle dependency cache

This'll preserve the FG and general module cache. Note, this doesn't
include gradle wrappers, but that's normally pretty fast to download.
This commit is contained in:
Jonathan Coates 2020-02-08 11:17:45 +00:00
parent 79f42e35ce
commit 239bd769df
No known key found for this signature in database
GPG Key ID: D6D4CB5BFBBB5CB8
1 changed files with 8 additions and 0 deletions

View File

@ -15,6 +15,14 @@ jobs:
with:
java-version: 1.8
- name: Cache gradle dependencies
uses: actions/cache@v1
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('gradle.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Build with Gradle
run: ./gradlew build --no-daemon