ci(mobile): enable Gradle cache writes on dev

Keep pull request and other branch caches read-only, while allowing main and dev builds to persist Gradle dependencies. Include stack traces and dependency resolution diagnostics in Android CI logs.

Co-Authored-By: GPT-6.2 Sol
This commit is contained in:
iSanae233
2026-12-02 16:16:51 +08:00
parent 63ef9b7c2c
commit ec3e2d43da

View File

@@ -62,8 +62,12 @@ jobs:
with:
packages: "platforms;android-36 build-tools;36.0.0 ndk;27.1.12297006"
- uses: gradle/actions/setup-gradle@v4
with:
cache-read-only: ${{ github.ref != 'refs/heads/main' && github.ref != 'refs/heads/dev' }}
- run: npm ci
- run: bash ./gradlew --no-daemon :app:assembleDebug -PreactNativeArchitectures=x86_64
- run: >-
bash ./gradlew --no-daemon --stacktrace --info
:app:assembleDebug -PreactNativeArchitectures=x86_64
working-directory: apps/mobile/android
- uses: actions/upload-artifact@v4
with: