Update workflows to use build cache; don't reduce error level for configuration cache problems anymore

This commit is contained in:
Ricki Hirner
2025-06-29 16:23:56 +02:00
parent 0f9c5027d4
commit 82ccf6a2f9
3 changed files with 7 additions and 7 deletions

View File

@@ -50,7 +50,7 @@ jobs:
# uses: github/codeql-action/autobuild@v2
- name: Build
run: ./gradlew --build-cache --configuration-cache --configuration-cache-problems=warn --no-daemon app:assembleOseDebug
run: ./gradlew --build-cache --configuration-cache --no-daemon app:assembleOseDebug
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3

View File

@@ -30,8 +30,8 @@ jobs:
run: echo ${{ secrets.android_keystore_base64 }} | base64 -d >$GITHUB_WORKSPACE/keystore.jks
- name: Build signed package
# Make sure that caches are disabled to generate reproducible release builds
run: ./gradlew --no-build-cache --no-configuration-cache --no-daemon app:assembleRelease
# Use build cache to speed up building of build variants, but clean caches from previous tests before
run: ./gradlew --build-cache --configuration-cache --no-daemon app:clean app:assembleRelease
env:
ANDROID_KEYSTORE: ${{ github.workspace }}/keystore.jks
ANDROID_KEYSTORE_PASSWORD: ${{ secrets.android_keystore_password }}

View File

@@ -27,7 +27,7 @@ jobs:
cache-encryption-key: ${{ secrets.gradle_encryption_key }}
dependency-graph: generate-and-submit # submit Github Dependency Graph info
- run: ./gradlew --build-cache --configuration-cache --configuration-cache-problems=warn app:compileOseDebugSource
- run: ./gradlew --build-cache --configuration-cache app:compileOseDebugSource
test:
needs: compile
@@ -46,9 +46,9 @@ jobs:
cache-read-only: true
- name: Run lint
run: ./gradlew --build-cache --configuration-cache --configuration-cache-problems=warn app:lintOseDebug
run: ./gradlew --build-cache --configuration-cache app:lintOseDebug
- name: Run unit tests
run: ./gradlew --build-cache --configuration-cache --configuration-cache-problems=warn app:testOseDebugUnitTest
run: ./gradlew --build-cache --configuration-cache app:testOseDebugUnitTest
test_on_emulator:
needs: compile
@@ -79,4 +79,4 @@ jobs:
key: avd-${{ hashFiles('app/build.gradle.kts') }} # gradle-managed devices are defined there
- name: Run device tests
run: ./gradlew --build-cache --configuration-cache --configuration-cache-problems=warn app:virtualCheck
run: ./gradlew --build-cache --configuration-cache app:virtualCheck