From 4017a2bd4fdd08f27e2a96fdb4b7a1e91253ccd4 Mon Sep 17 00:00:00 2001 From: Sujan Poudel Date: Wed, 20 Dec 2023 08:38:01 +0545 Subject: [PATCH] add gradle cache (#12) --- .github/workflows/lint.yaml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index e3b7be3..5873fd7 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -27,11 +27,16 @@ jobs: distribution: 'temurin' cache: gradle - - name: Validate Gradle wrapper - uses: gradle/wrapper-validation-action@v1.1.0 - - - name: Setup Gradle - uses: gradle/gradle-build-action@v2.1.0 + - name: Checkout Gradle Build Cache + uses: actions/cache@v3 + with: + path: | + ~/.gradle/caches + ~/.gradle/wrapper + !~/.gradle/wrapper/dists/**/gradle*.zip + key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} + restore-keys: | + gradle-${{ runner.os }}- - name: Build Project run: ./gradlew build