From 8c62a78107423d660e7cd1b6341d2e6bbd27216a Mon Sep 17 00:00:00 2001 From: Yang Chen Date: Thu, 2 Apr 2020 23:43:06 +1100 Subject: [PATCH] Add gradle caching. --- .github/workflows/workflow.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 2a92fc8d8..5e6bb0c0a 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -38,7 +38,13 @@ jobs: uses: actions/setup-java@v1 with: java-version: 14 - + - name: Clean cache + if: matrix.os == 'macos-latest' + run: mv ~/.gradle/caches ~/.gradle/.invalid_caches + - uses: actions/cache@v1 + with: + path: ~/.gradle/caches + key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }} - name: run action uses: ./ with: