From ec3e2d43dadbd70065584e66915b005601fd0320 Mon Sep 17 00:00:00 2001 From: iSanae233 <126803844+iSanae233@users.noreply.github.com> Date: Wed, 2 Dec 2026 16:16:51 +0800 Subject: [PATCH] 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 --- .github/workflows/mobile.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/mobile.yml b/.github/workflows/mobile.yml index 4ade00817..6916f2538 100644 --- a/.github/workflows/mobile.yml +++ b/.github/workflows/mobile.yml @@ -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: