diff --git a/.github/workflows/cd.yaml b/.github/workflows/cd.yaml index a469125..da1425e 100644 --- a/.github/workflows/cd.yaml +++ b/.github/workflows/cd.yaml @@ -14,6 +14,19 @@ jobs: java-version: '17' distribution: 'temurin' + - name: Cache + uses: actions/cache@v4 + with: + path: | + ./build + ./.gradle + ~/.gradle/caches + ~/.gradle/wrapper + ~/.m2/repository + key: ${{ runner.os }}-gradle-${{ hashFiles('*.gradle.kts') }} + restore-keys: | + ${{ runner.os }}-gradle- + - name: Validate Gradle wrapper uses: gradle/wrapper-validation-action@ccb4328a959376b642e027874838f60f8e596de3 diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 521b646..2fdb13c 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -16,6 +16,19 @@ jobs: distribution: 'temurin' cache: gradle + - name: Cache + uses: actions/cache@v4 + with: + path: | + ./build + ./.gradle + ~/.gradle/caches + ~/.gradle/wrapper + ~/.m2/repository + key: ${{ runner.os }}-gradle-${{ hashFiles('*.gradle.kts') }} + restore-keys: | + ${{ runner.os }}-gradle- + - name: Validate Gradle wrapper uses: gradle/actions/wrapper-validation@v3