You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by su...@apache.org on 2020/04/14 04:41:14 UTC

[groovy] branch master updated: Cache gradle repository to speed-up github actions builds.

This is an automated email from the ASF dual-hosted git repository.

sunlan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/groovy.git


The following commit(s) were added to refs/heads/master by this push:
     new 2967e3d  Cache gradle repository to speed-up github actions builds.
2967e3d is described below

commit 2967e3d49c67573fa1c7ea3dea93ee77d373c404
Author: Pascal Schumacher <pa...@gmx.net>
AuthorDate: Mon Apr 13 11:04:46 2020 +0200

    Cache gradle repository to speed-up github actions builds.
---
 .github/workflows/gradle.yml | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml
index caa7b18..fd6a4c5 100644
--- a/.github/workflows/gradle.yml
+++ b/.github/workflows/gradle.yml
@@ -31,6 +31,12 @@ jobs:
         uses: actions/setup-java@v1
         with:
           java-version: ${{ matrix.java }}
+      - name: Cache Gradle Repository
+        uses: actions/cache@v1
+        with:
+          path: ~/.gradle/caches
+          key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
+          restore-keys: ${{ runner.os }}-gradle
       - name: Test with Gradle
         run: ./gradlew test
         timeout-minutes: 60
@@ -49,6 +55,12 @@ jobs:
         uses: actions/setup-java@v1
         with:
           java-version: ${{ matrix.java }}
+      - name: Cache Gradle Repository
+        uses: actions/cache@v1
+        with:
+          path: ~/.gradle/caches
+          key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
+          restore-keys: ${{ runner.os }}-gradle
       - name: Test with Gradle
         run: ./gradlew testWithIndy
         timeout-minutes: 60