From 2318869b18ed23be6244a3b5d8f4fd13c7656ad4 Mon Sep 17 00:00:00 2001 From: Abhay Sood Date: Tue, 2 Jul 2024 22:11:56 +0530 Subject: [PATCH] ci(android): cache gradle on CI --- .github/workflows/android.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index c718bb4d6..465527484 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -32,6 +32,7 @@ jobs: with: distribution: ${{ env.JAVA_DISTRIBUTION }} java-version: ${{ env.JAVA_VERSION }} + cache: 'gradle' - name: Check Gradle wrapper uses: gradle/wrapper-validation-action@v1 - name: Run all checks @@ -52,6 +53,7 @@ jobs: with: java-version: ${{ env.JAVA_VERSION }} distribution: ${{ env.JAVA_DISTRIBUTION }} + cache: 'gradle' - name: Validate Gradle wrapper uses: gradle/wrapper-validation-action@v1 - name: Assemble benchmarks @@ -71,6 +73,7 @@ jobs: with: java-version: ${{ env.JAVA_VERSION }} distribution: ${{ env.JAVA_DISTRIBUTION }} + cache: 'gradle' - name: Validate Gradle wrapper uses: gradle/wrapper-validation-action@v1 - name: Assemble benchmarks @@ -94,6 +97,7 @@ jobs: with: java-version: ${{ env.JAVA_VERSION }} distribution: ${{ env.JAVA_DISTRIBUTION }} + cache: 'gradle' - name: Validate Gradle wrapper uses: gradle/wrapper-validation-action@v1 - name: Publish measure-android @@ -120,6 +124,7 @@ jobs: with: java-version: ${{ env.JAVA_VERSION }} distribution: ${{ env.JAVA_DISTRIBUTION }} + cache: 'gradle' - name: Validate Gradle wrapper uses: gradle/wrapper-validation-action@v1 - name: Run measure-android-gradle tests