mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-06 04:50:20 +08:00
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:
6
.github/workflows/mobile.yml
vendored
6
.github/workflows/mobile.yml
vendored
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user