From af5752c83b6d24661ac08be05d0452c6333e3b56 Mon Sep 17 00:00:00 2001 From: Mauricio Generoso Date: Sun, 30 Jun 2024 11:23:19 +0100 Subject: [PATCH] refs #110: set gradle cache for ci-workflow.yml --- .github/workflows/ci-workflow.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.github/workflows/ci-workflow.yml b/.github/workflows/ci-workflow.yml index fbd4842..2efecf9 100644 --- a/.github/workflows/ci-workflow.yml +++ b/.github/workflows/ci-workflow.yml @@ -40,6 +40,16 @@ jobs: java-version: '21' distribution: 'temurin' + - name: Cache Gradle packages + uses: actions/cache@v4 + with: + path: | + ~/.gradle/caches + ~/.gradle/wrapper + key: gradle-${{ runner.os }}-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} + restore-keys: | + gradle-${{ runner.os }}- + - name: Build + unit tests run: ./gradlew :app:build @@ -74,6 +84,16 @@ jobs: java-version: '21' distribution: 'temurin' + - name: Cache Gradle packages + uses: actions/cache@v4 + with: + path: | + ~/.gradle/caches + ~/.gradle/wrapper + key: gradle-${{ runner.os }}-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} + restore-keys: | + gradle-${{ runner.os }}- + - name: Download JAR uses: actions/download-artifact@v4 with: