This commit is contained in:
@@ -35,7 +35,12 @@ jobs:
|
|||||||
export ANDROID_SDK_ROOT=$ANDROID_HOME
|
export ANDROID_SDK_ROOT=$ANDROID_HOME
|
||||||
export PATH=$ANDROID_HOME/cmdline-tools/latest/bin:$ANDROID_HOME/platform-tools:$ANDROID_HOME/build-tools/34.0.0:$PATH
|
export PATH=$ANDROID_HOME/cmdline-tools/latest/bin:$ANDROID_HOME/platform-tools:$ANDROID_HOME/build-tools/34.0.0:$PATH
|
||||||
|
|
||||||
# 直接使用系统 Gradle 8.14.4 编译(避免 Gradle 8.2 wrapper 在 Alpine 上的 JVM 崩溃问题)
|
# 创建 gradle.properties 配置自定义 aapt2(ARM64 版本)
|
||||||
|
echo "android.aapt2FromMavenOverride=/usr/bin/aapt2" >> gradle.properties
|
||||||
|
echo "org.gradle.jvmargs=-Xmx2g -XX:+UseG1GC -XX:MaxMetaspaceSize=512m" >> gradle.properties
|
||||||
|
echo "org.gradle.daemon=false" >> gradle.properties
|
||||||
|
|
||||||
|
# 直接使用系统 Gradle 8.14.4 编译(使用 ARM64 aapt2)
|
||||||
echo "=== 开始编译 ==="
|
echo "=== 开始编译 ==="
|
||||||
gradle assembleDebug \
|
gradle assembleDebug \
|
||||||
--no-daemon \
|
--no-daemon \
|
||||||
@@ -43,9 +48,6 @@ jobs:
|
|||||||
--no-watch-fs \
|
--no-watch-fs \
|
||||||
--no-configuration-cache \
|
--no-configuration-cache \
|
||||||
--no-build-cache \
|
--no-build-cache \
|
||||||
-Dorg.gradle.daemon=false \
|
|
||||||
-Dorg.gradle.jvmargs="-Xmx2g -XX:+UseG1GC -XX:MaxMetaspaceSize=512m" \
|
|
||||||
-Dorg.gradle.internal.native.headers.unresolved.dependencies.ignore=true \
|
|
||||||
-Dfile.encoding=UTF-8
|
-Dfile.encoding=UTF-8
|
||||||
|
|
||||||
# 验证输出
|
# 验证输出
|
||||||
|
|||||||
Reference in New Issue
Block a user