From d3a6a82b50b956f7d6568ad599a58a1ec86fbe9b Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Sat, 19 Nov 2022 18:10:10 +0530 Subject: [PATCH] Revert "Revert "fix(ci): disable configuration cache"" This reverts commit f7b4f4383c842a69519404379f6db43c0fc2d4b6. --- .github/workflows/ci.yml | 6 +++--- .github/workflows/release.yml | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 96b307db..4383a865 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,14 +26,14 @@ jobs: - name: Run unit tests uses: gradle/gradle-build-action@3fbe033aaae657f011f88f29be9e65ed26bd29ef # tag=v2.3.3 with: - arguments: check -PslimTests + arguments: --no-configuration-cache check -PslimTests gradle-home-cache-cleanup: true cache-read-only: ${{ github.ref != 'refs/heads/main' }} - name: Run Detekt uses: gradle/gradle-build-action@3fbe033aaae657f011f88f29be9e65ed26bd29ef # tag=v2.3.3 with: - arguments: detektMain + arguments: --no-configuration-cache detektMain gradle-home-cache-cleanup: true cache-read-only: ${{ github.ref != 'refs/heads/main' }} @@ -66,7 +66,7 @@ jobs: - name: Build release app uses: gradle/gradle-build-action@3fbe033aaae657f011f88f29be9e65ed26bd29ef # tag=v2.3.3 with: - arguments: collectReleaseApks + arguments: --no-configuration-cache collectReleaseApks gradle-home-cache-cleanup: true cache-read-only: ${{ github.ref != 'refs/heads/main' }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8bc4348a..08fa6605 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -38,11 +38,11 @@ jobs: shell: bash run: | # Remove the `-SNAPSHOT` suffix - ./gradlew -q clearPreRelease + ./gradlew -q --no-configuration-cache clearPreRelease git commit -am 'feat(release): bump version' # Build the release assets - ./gradlew collectReleaseApks collectReleaseBundle + ./gradlew --no-configuration-cache collectReleaseApks collectReleaseBundle - name: Clean secrets run: scripts/signing-cleanup.sh @@ -74,7 +74,7 @@ jobs: gh release create "v${VERSION}" -F distribution/whatsnew/whatsnew-en-GB --title "v${VERSION}" ./android/apk/*.apk ./android/bundle/*.aab # Start the next development iteration - ./gradlew -q bumpSnapshot + ./gradlew -q --no-configuration-cache bumpSnapshot truncate -s 0 distribution/whatsnew/whatsnew-en-GB # Clear changelog git commit -am 'feat(release): start next development iteration' git push origin main