ci: add missing gradle properties and enable build logging
Restore critical build properties that expo prebuild does not generate: - ndkVersion for native compilation - Gradle HTTP connection and socket timeouts for reliability - Capture full build output with stacktrace for CI debugging
This commit is contained in:
@@ -141,7 +141,8 @@ jobs:
|
||||
MYAPP_UPLOAD_KEY_PASSWORD=${{ secrets.ANDROID_KEY_PASSWORD }}
|
||||
SIGNING_PROPS
|
||||
|
||||
# CI build tuning (low-memory container): force single-worker, reduce JVM heap
|
||||
# CI build tuning (low-memory container): force single-worker, reduce JVM heap,
|
||||
# plus restore properties that prebuild does NOT generate but the build needs.
|
||||
cat >> gradle.properties << 'CI_PROPS'
|
||||
org.gradle.daemon=false
|
||||
org.gradle.parallel=false
|
||||
@@ -149,6 +150,9 @@ jobs:
|
||||
org.gradle.workers.max=1
|
||||
org.gradle.jvmargs=-Xmx4g -XX:MaxMetaspaceSize=1g -XX:+UseG1GC -XX:ReservedCodeCacheSize=256m -XX:+HeapDumpOnOutOfMemoryError
|
||||
kotlin.daemon.jvmargs=-Xmx4g -XX:MaxMetaspaceSize=1g -XX:+UseG1GC -XX:ReservedCodeCacheSize=256m
|
||||
ndkVersion=27.1.12297006
|
||||
systemProp.org.gradle.internal.http.connectionTimeout=30000
|
||||
systemProp.org.gradle.internal.http.socketTimeout=30000
|
||||
CI_PROPS
|
||||
|
||||
# Verify signing config in app/build.gradle
|
||||
@@ -159,7 +163,9 @@ jobs:
|
||||
run: |
|
||||
cd android
|
||||
chmod +x gradlew
|
||||
taskset -c 0-7 ./gradlew :app:assembleRelease -PreactNativeArchitectures=arm64-v8a --max-workers=1 -Dkotlin.daemon.jvm.options="-Xmx2g,XX:MaxMetaspaceSize=1g"
|
||||
taskset -c 0-7 ./gradlew :app:assembleRelease -PreactNativeArchitectures=arm64-v8a --max-workers=1 --stacktrace --info -Dkotlin.daemon.jvm.options="-Xmx2g,XX:MaxMetaspaceSize=1g" 2>&1 | tee gradle-build.log
|
||||
echo "===== Last 200 lines of build log ====="
|
||||
tail -n 200 gradle-build.log
|
||||
|
||||
- name: Upload APK artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
|
||||
Reference in New Issue
Block a user