From 6c07332fc61809f90bdf65b41b7537393c595fa2 Mon Sep 17 00:00:00 2001 From: WebDitto Date: Thu, 19 Jun 2025 16:49:37 -0300 Subject: [PATCH] ci: Fixed build cache to restore before save --- .github/workflows/build_push.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_push.yml b/.github/workflows/build_push.yml index 625f8d78..de69d419 100644 --- a/.github/workflows/build_push.yml +++ b/.github/workflows/build_push.yml @@ -104,8 +104,8 @@ jobs: - name: Set up Gradle uses: https://github.com/gradle/actions/setup-gradle@245c8a24de79c0dbeabaf19ebcbbd3b2c36f278d # v4 - - name: Cache build directories - uses: https://github.com/actions/cache/save@v3 + - name: Restore build cache + uses: https://github.com/actions/cache/restore@v3 with: path: | src/**/build @@ -123,6 +123,14 @@ jobs: KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }} run: chmod +x ./gradlew && ./gradlew -p src assembleRelease + - name: Store build cache + uses: https://github.com/actions/cache/save@v3 + with: + path: | + src/**/build + !src/**/build/outputs + key: build-cache-${{ github.sha }}-${{ matrix.chunk }} + - name: Upload APKs uses: https://code.forgejo.org/forgejo/upload-artifact@16871d9e8cfcf27ff31822cac382bbb5450f1e1e # v4-patch if: "github.repository == 'Kohi-den/extensions-source'"