[CI, Android] (Disaggregated): ship and verify inproc APKs on disaggregation branches

This commit is contained in:
2026-09-20 10:16:54 -04:00
parent 30b1bf25a4
commit 7e82ea0fbf
4 changed files with 141 additions and 11 deletions
+12 -8
View File
@@ -15,14 +15,17 @@ def mobileGlBuildServerSpike = {
(rootProject.findProperty('mobilegl.buildServerSpike') ?: System.getenv('MOBILEGL_BUILD_SERVER_SPIKE') ?: 'OFF') as String
}
// P2 A/B opt-in. OFF by default, so the plugin flavour and every trace APK nobody asked for
// keep the pull shape; the paired two-device A/B (docs/Disaggregated ROADMAP GO/NO-GO items
// 3-4) builds one trace APK with it ON and compares it against the OFF build. Either
// ./gradlew :app:assembleTraceDebug -Pmobilegl.pipePush=ON
// or MOBILEGL_PIPE_PUSH_APK=ON in the environment.
// Shared native shape for BOTH plugin and trace APKs. Defaults keep existing
// callers on pull; disaggregated CI explicitly selects all three switches.
def mobileGlPipePush = {
(rootProject.findProperty('mobilegl.pipePush') ?: System.getenv('MOBILEGL_PIPE_PUSH_APK') ?: 'OFF') as String
}
def mobileGlBuildDisaggregated = {
(rootProject.findProperty('mobilegl.buildDisaggregated') ?: System.getenv('MOBILEGL_BUILD_DISAGGREGATED') ?: 'OFF') as String
}
def mobileGlBuildDisaggregatedInproc = {
(rootProject.findProperty('mobilegl.buildDisaggregatedInproc') ?: System.getenv('MOBILEGL_BUILD_DISAGGREGATED_INPROC') ?: mobileGlBuildDisaggregated()) as String
}
android {
namespace 'top.mobilegl.mobilegl'
@@ -36,6 +39,10 @@ android {
externalNativeBuild {
cmake {
arguments "-DMOBILEGL_LOG_ACTIVE_LEVEL=${mobileGlLogActiveLevel()}"
arguments '-DCMAKE_EXPORT_COMPILE_COMMANDS=ON'
arguments "-DMOBILEGL_PIPE_PUSH=${mobileGlPipePush()}"
arguments "-DMOBILEGL_BUILD_DISAGGREGATED=${mobileGlBuildDisaggregated()}"
arguments "-DMOBILEGL_BUILD_DISAGGREGATED_INPROC=${mobileGlBuildDisaggregatedInproc()}"
}
}
}
@@ -79,9 +86,6 @@ android {
// grow a binary nothing loads. See mobileGlBuildServerSpike
// above for the two ways to enable it.
arguments "-DMOBILEGL_BUILD_SERVER_SPIKE=${mobileGlBuildServerSpike()}"
// P2: the push-shaped library for the paired A/B, same flavour, same
// signing, one extra CMake option. See mobileGlPipePush above.
arguments "-DMOBILEGL_PIPE_PUSH=${mobileGlPipePush()}"
}
}
}