From 3264b47f1330f7a2bbe91683fb6de6295fdaee83 Mon Sep 17 00:00:00 2001 From: Richard North Date: Sat, 18 Apr 2020 16:07:28 +0100 Subject: [PATCH] Add gradle caching to find_gradle_jobs build (#2589) --- .github/workflows/ci.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5f7dfb2c3dc..84b3d9a5197 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,6 +11,17 @@ jobs: matrix: ${{ steps.set-matrix.outputs.matrix }} steps: - uses: actions/checkout@v2 + - uses: actions/setup-java@v1 + with: + java-version: '1.8' + - name: Cache Gradle Home files + uses: actions/cache@v1 + with: + path: ~/.gradle/caches + key: ${{ runner.os }}-gradle-home-testmatrix-${{ hashFiles('**/*.gradle') }} + restore-keys: | + ${{ runner.os }}-gradle-home-testmatrix- + ${{ runner.os }}-gradle-home- - id: set-matrix run: | TASKS=$(./gradlew --no-daemon --parallel -q testMatrix)