Commit b92c07d
committed
ci: speed up the android build with one debug-scoped gradle invocation
The build job ran assembleDebug, test, and lint as three separate ./gradlew
invocations (three configuration phases), and test/lint each built BOTH the
debug and release variants. CI ships the debug APK and the release variant's
compilation is validated by the release job's assembleRelease, so the debug
variant is sufficient on the build job.
Collapse to a single debug-scoped invocation:
./gradlew assembleDebug testDebugUnitTest lintDebug
Keeps every debug unit test, debug lint check, and the APK packaging check;
drops only the redundant release-variant unit tests + release lint and two
extra configuration phases. ~2 min faster on a ~9 min build (unit tests
146s->~75s, lint 61s->~30s, two fewer daemon/config startups). No tests
removed.1 parent 9122893 commit b92c07d
1 file changed
Lines changed: 7 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
169 | 170 | | |
170 | 171 | | |
171 | 172 | | |
| |||
0 commit comments