From 8464c322ec7d79b30896a7d23bba5d70cebf76d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9rgio=20Santos?= Date: Wed, 17 Jul 2024 16:17:45 +0100 Subject: [PATCH] Use more setup-gradle for caching purposes --- .github/workflows/validate.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index a940bbda4..695f281ab 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -32,11 +32,13 @@ jobs: with: java-version: '17' distribution: 'temurin' - cache: 'gradle' - name: checkout uses: actions/checkout@v4 + - name: Gradle cache + uses: gradle/actions/setup-gradle@v3 + - name: Build `StableFullRelease` and `StableFdroidRelease` variants run: ./gradlew build${{ matrix.version }} && ./gradlew clean @@ -51,11 +53,13 @@ jobs: with: java-version: '17' distribution: 'temurin' - cache: 'gradle' - name: checkout uses: actions/checkout@v4 + - name: Gradle cache + uses: gradle/actions/setup-gradle@v3 + - name: Run unit tests run: ./gradlew testOoniStableFullRelease @@ -82,7 +86,6 @@ jobs: with: java-version: '17' distribution: 'temurin' - cache: 'gradle' - name: checkout uses: actions/checkout@v4 @@ -184,7 +187,9 @@ jobs: with: java-version: '17' distribution: 'temurin' - cache: 'gradle' + + - name: Gradle cache + uses: gradle/actions/setup-gradle@v3 - name: Assemble APKs if: success() && steps.get_issue_number.outputs.result