From 239bd769df2bb5b29b97ccccc512f761e08ad6b4 Mon Sep 17 00:00:00 2001 From: Jonathan Coates Date: Sat, 8 Feb 2020 11:17:45 +0000 Subject: [PATCH] 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. --- .github/workflows/main-ci.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/main-ci.yml b/.github/workflows/main-ci.yml index d499cd33f..924abb37a 100644 --- a/.github/workflows/main-ci.yml +++ b/.github/workflows/main-ci.yml @@ -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