Skip to content

Commit dc70167

Browse files
ci: skip APK sanity-check on docs/tools/CI-only changes
The Lint & Compile check takes ~2h, yet it runs on EVERY push/PR to main or development — including commits that touch no APK code (a README typo, a shell tool under tools/, a CI tweak). Add paths-ignore so the build is skipped when a change touches ONLY non-APK paths: **.md, docs/**, controller/docs/**, tools/** (rootfs/proot builders), .github/** (CI config), LICENSE, .gitignore. If ANY app source/gradle/resource file is also touched, the check still runs (paths-ignore only skips when ALL changed files match). Tags / release builds are unaffected (separate workflows). Future work: finer code-vs-noncode logic. NOTE: if 'Lint & Compile Check' is a REQUIRED status in branch protection, a docs-only PR will show the check as never-run and could be blocked; in that case either unmark it required or add a companion always-green job for ignored paths.
1 parent bf44f3f commit dc70167

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

‎.github/workflows/android-sanity-check.yml‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,24 @@ on:
66
# got two redundant concurrent runs. Feature branches are covered by their PR.
77
push:
88
branches: [ "main", "development" ]
9+
paths-ignore:
10+
- '**.md'
11+
- 'docs/**'
12+
- 'controller/docs/**'
13+
- 'tools/**'
14+
- '.github/**'
15+
- 'LICENSE'
16+
- '.gitignore'
917
pull_request:
1018
branches: [ "main", "development" ]
19+
paths-ignore:
20+
- '**.md'
21+
- 'docs/**'
22+
- 'controller/docs/**'
23+
- 'tools/**'
24+
- '.github/**'
25+
- 'LICENSE'
26+
- '.gitignore'
1127

1228
# Supersede in-flight runs: when a newer commit lands on the same branch/PR, cancel
1329
# the older run so a fixup doesn't leave a zombie ~50-min lint job running.

0 commit comments

Comments
 (0)