Compile releases without build and configuration cache

This commit is contained in:
Ricki Hirner 2023-12-25 13:30:00 +01:00
parent 09253a2454
commit 320fe1dfd8
No known key found for this signature in database
GPG Key ID: 79A019FCAAEDD3AA

View File

@ -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 }}