Skip to content

Commit f5f1f75

Browse files
ADFA-4592: Set clean: false on build checkout for incremental :app builds
The real cause of the flat debug build time: actions/checkout defaults to clean: true, which runs 'git clean -ffdx' at the start of every run and wipes app/build/ (and every other module build/ dir), so :app is recompiled from scratch each build and no incremental compilation ever happens. The rm -rf app/build steps removed earlier were redundant with this. Set clean: false on the build_apk checkout so build/ dirs persist across runs on the self-hosted runner, enabling Gradle incremental compilation. Safe now that the custom registerD8Task (which wrote untracked dex and caused the original stale-artifact D8 crashes) has been removed in this PR.
1 parent 19ee2a7 commit f5f1f75

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎.github/workflows/debug.yml‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,11 @@ jobs:
9191
with:
9292
ref: ${{ github.event.pull_request.head.ref }}
9393
fetch-depth: 0
94+
# Preserve build/ dirs between runs on the persistent self-hosted
95+
# runner so Gradle compiles :app incrementally instead of from
96+
# scratch. Default (clean: true) runs `git clean -ffdx`, wiping every
97+
# module's build/ dir on every run and forcing a full :app rebuild.
98+
clean: false
9499

95100
- name: Validate branch name length
96101
run: |

0 commit comments

Comments
 (0)