From a6fbe2c98387c82d8adef30fb5217574ba6db06c Mon Sep 17 00:00:00 2001 From: Nick <31907977+zt64@users.noreply.github.com> Date: Sat, 12 Jul 2025 01:33:20 -0400 Subject: [PATCH] feat(ci): improve workflow caching (#97) --- .github/workflows/build.yml | 6 ++++-- .github/workflows/release.yml | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 535c46e..74da0da 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -20,10 +20,12 @@ jobs: with: java-version: 21 distribution: zulu - cache: "gradle" + + - name: Setup Gradle + uses: gradle/actions/setup-gradle@v4 - name: Build with Gradle - run: chmod +x ./gradlew && ./gradlew :app:assembleDebug :app:assembleStaging --stacktrace + run: ./gradlew :app:assembleDebug :app:assembleStaging --stacktrace - name: Upload artifacts uses: actions/upload-artifact@v4 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fdae2ba..a296f94 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,7 +23,9 @@ jobs: with: java-version: 21 distribution: zulu - cache: "gradle" + + - name: Setup Gradle + uses: gradle/actions/setup-gradle@v4 - name: Build with Gradle env: @@ -34,7 +36,7 @@ jobs: RELEASE: true run: | echo "${{ secrets.keystore }}" | base64 -d > release.keystore - chmod +x ./gradlew && ./gradlew :app:packageRelease --stacktrace + ./gradlew :app:packageRelease --stacktrace rm release.keystore - name: Upload artifacts