fix(ci): bound hosted Android build memory (#122088)

This commit is contained in:
Vincent Koc
2026-08-11 23:57:22 +08:00
committed by GitHub
parent d1452fb5d1
commit afc644464d
2 changed files with 70 additions and 17 deletions
+23 -8
View File
@@ -3686,14 +3686,29 @@ jobs:
./gradlew --no-daemon --build-cache :wear:testDebugUnitTest
;;
build-play)
./gradlew --no-daemon --build-cache \
:app:assemblePlayDebug \
:app:assembleThirdPartyDebug \
:app:lintPlayDebug \
:app:lintThirdPartyDebug \
:benchmark:assembleDebug \
:wear-shared:assembleDebug \
:wear-shared:lintDebug
if [ "$GITHUB_EVENT_NAME" = "workflow_dispatch" ]; then
# GitHub-hosted runners have less memory headroom. Separate Gradle
# processes release each variant's build state before the next starts.
./gradlew --no-daemon --build-cache \
:app:assemblePlayDebug \
:app:lintPlayDebug
./gradlew --no-daemon --build-cache \
:app:assembleThirdPartyDebug \
:app:lintThirdPartyDebug
./gradlew --no-daemon --build-cache \
:benchmark:assembleDebug \
:wear-shared:assembleDebug \
:wear-shared:lintDebug
else
./gradlew --no-daemon --build-cache \
:app:assemblePlayDebug \
:app:assembleThirdPartyDebug \
:app:lintPlayDebug \
:app:lintThirdPartyDebug \
:benchmark:assembleDebug \
:wear-shared:assembleDebug \
:wear-shared:lintDebug
fi
;;
build-wear)
./gradlew --no-daemon --build-cache \