fix(android): cache the gradle distribution and dependencies

Every Android job downloads gradle-8.13-bin.zip and the whole Android
plugin dependency tree from Maven Central on each run, so a Maven Central
403 fails the build before it configures anything:

  Could not GET '.../kotlin-stdlib-2.2.0.pom'.
  Received status code 403 from server: Forbidden

Cache ~/.gradle/caches and ~/.gradle/wrapper, keyed on the wrapper
properties and build.gradle.
This commit is contained in:
Jonathan Steffan
2026-07-26 10:16:46 +02:00
committed by xytovl
parent 04639417c4
commit d747f4dd04
2 changed files with 18 additions and 0 deletions
+9
View File
@@ -25,6 +25,15 @@ jobs:
ref: ${{ github.sha }}
fetch-depth: 0
# Gradle distribution and the Android plugin's dependencies.
- uses: actions/cache@v5
with:
key: gradle-android-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties', 'build.gradle') }}
path: |
~/.gradle/caches
~/.gradle/wrapper
restore-keys: gradle-android-
- name: Install dependencies
run: |
sudo apt-get update && sudo apt-get install glslang-tools spirv-tools librsvg2-bin gettext npm
+9
View File
@@ -196,6 +196,15 @@ jobs:
${{github.workspace}}/cmake-fetch/*.tgz
restore-keys: cmake-android-
# Gradle distribution and the Android plugin's dependencies.
- uses: actions/cache@v5
with:
key: gradle-android-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties', 'build.gradle') }}
path: |
~/.gradle/caches
~/.gradle/wrapper
restore-keys: gradle-android-
- name: Install dependencies
run: |
sudo apt-get update && sudo apt-get install glslang-tools spirv-tools librsvg2-bin gettext