From db17815576b0db553ae3475815bfeb7b5ba8d6cf Mon Sep 17 00:00:00 2001 From: James Rich <2199651+jamesarich@users.noreply.github.com> Date: Tue, 8 Jul 2025 15:56:32 +0000 Subject: [PATCH] fix(ci): Gradle cache and auth requests for `setup-java` (#2392) Signed-off-by: James Rich <2199651+jamesarich@users.noreply.github.com> --- .github/workflows/release.yml | 6 ++++++ .github/workflows/reusable-android-build.yml | 3 +++ .github/workflows/reusable-android-test.yml | 3 +++ 3 files changed, 12 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fa5e202d4..f7d29c052 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -78,6 +78,9 @@ jobs: with: java-version: '21' distribution: 'jetbrains' + cache: 'gradle' + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Build F-Droid release run: ./gradlew assembleFdroidRelease @@ -136,6 +139,9 @@ jobs: with: java-version: '21' distribution: 'jetbrains' + cache: 'gradle' + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Build Play Store release run: ./gradlew bundleGoogleRelease assembleGoogleRelease diff --git a/.github/workflows/reusable-android-build.yml b/.github/workflows/reusable-android-build.yml index 4a296e4c1..9ec316512 100644 --- a/.github/workflows/reusable-android-build.yml +++ b/.github/workflows/reusable-android-build.yml @@ -28,6 +28,9 @@ jobs: with: java-version: '21' distribution: 'jetbrains' + cache: 'gradle' + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Cache Gradle User Home uses: actions/cache@v4 with: diff --git a/.github/workflows/reusable-android-test.yml b/.github/workflows/reusable-android-test.yml index 5f8109f39..7eee00a56 100644 --- a/.github/workflows/reusable-android-test.yml +++ b/.github/workflows/reusable-android-test.yml @@ -39,6 +39,9 @@ jobs: with: java-version: '21' distribution: 'jetbrains' + cache: 'gradle' + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Cache Gradle User Home uses: actions/cache@v4 with: