Skip to content

Commit 320fe1d

Browse files
committed
Compile releases without build and configuration cache
1 parent 09253a2 commit 320fe1d

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,6 @@ jobs:
2525
java-version: 17
2626
- uses: gradle/gradle-build-action@v2
2727

28-
- name: Use app/build and gradle configuration cache
29-
uses: actions/cache/restore@v3
30-
with:
31-
key: app_build-tests-without-emulator
32-
path: |
33-
.gradle/configuration-cache
34-
app/build
35-
3628
- name: Prepare keystore
3729
run: echo ${{ secrets.android_keystore_base64 }} | base64 -d >$GITHUB_WORKSPACE/keystore.jks
3830

@@ -42,7 +34,8 @@ jobs:
4234
run: ./gradlew --no-build-cache --no-configuration-cache -PaboutLibraries.exportPath=src/main/res/raw/ app:exportLibraryDefinitions
4335

4436
- name: Build signed package
45-
run: ./gradlew app:assembleRelease
37+
# Make sure that caches are disabled to generate reproducible release builds
38+
run: ./gradlew --no-build-cache --no-configuration-cache app:assembleRelease
4639
env:
4740
ANDROID_KEYSTORE: ${{ github.workspace }}/keystore.jks
4841
ANDROID_KEYSTORE_PASSWORD: ${{ secrets.android_keystore_password }}

0 commit comments

Comments
 (0)