Add gradle cache support to CI.

This commit is contained in:
Greyson Parrelli
2026-06-02 10:36:22 -04:00
committed by Alex Hart
parent b02210c166
commit b8c964846c
2 changed files with 19 additions and 3 deletions
+9 -1
View File
@@ -28,7 +28,15 @@ jobs:
with:
distribution: temurin
java-version: 17
cache: gradle
- name: Set up Gradle
uses: gradle/actions/setup-gradle@50e97c2cd7a37755bbfafc9c5b7cafaece252f6e # v6
# gh api repos/gradle/actions/commits/v6 --jq '.sha'
with:
# PR-only workflow: always read from the cache, never write.
cache-read-only: true
# Required to read the Gradle configuration cache persisted by 8.** builds.
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
- name: Install NDK
run: echo "y" | ${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin/sdkmanager --install "ndk;${{ env.NDK_VERSION }}"