From 320fe1dfd83b2655bbbe2c5dd75ff501ebf06f82 Mon Sep 17 00:00:00 2001 From: Ricki Hirner Date: Mon, 25 Dec 2023 13:30:00 +0100 Subject: [PATCH] Compile releases without build and configuration cache --- .github/workflows/release.yml | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0e080b81..c8f87f78 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -25,14 +25,6 @@ jobs: java-version: 17 - uses: gradle/gradle-build-action@v2 - - name: Use app/build and gradle configuration cache - uses: actions/cache/restore@v3 - with: - key: app_build-tests-without-emulator - path: | - .gradle/configuration-cache - app/build - - name: Prepare keystore run: echo ${{ secrets.android_keystore_base64 }} | base64 -d >$GITHUB_WORKSPACE/keystore.jks @@ -42,7 +34,8 @@ jobs: run: ./gradlew --no-build-cache --no-configuration-cache -PaboutLibraries.exportPath=src/main/res/raw/ app:exportLibraryDefinitions - name: Build signed package - run: ./gradlew app:assembleRelease + # Make sure that caches are disabled to generate reproducible release builds + run: ./gradlew --no-build-cache --no-configuration-cache app:assembleRelease env: ANDROID_KEYSTORE: ${{ github.workspace }}/keystore.jks ANDROID_KEYSTORE_PASSWORD: ${{ secrets.android_keystore_password }}