ci(release): trim setup-android, drop broken Gradle cache, add job timeout #13
Reference in New Issue
Block a user
No description provided.
Delete Branch "ci/release-workflow-speedup"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
The
Release APKworkflow was slow and sometimes appeared to hang mid-build (e.g. run #190 sat with no output during large SDK downloads and R8 minification). None of these are the release blocker itself — they're wall-clock/robustness fixes.Changes to
.gitea/workflows/release.ymlTrim
android-actions/setup-android@v3— pinpackages: ''. By default the action pulls the entire Android emulator + the legacytoolspackage (hundreds of MB, network-bound on the self-hosted runner) that a headless APK build never touches. The very next step (Install Android SDK packages) already installs exactly what we need (platform-tools,platforms;android-35,build-tools;35.0.0).Drop the
Cache Gradle(actions/cache@v4) step — it timed out every run against the Gitea artifact-cache backend (::warning::Failed to restore: getCacheEntry failed: Request timeout), so it added latency with zero caching benefit.Add
timeout-minutes: 30to thereleasejob — there was no timeout, and withconcurrency.cancel-in-progress: falsea genuinely wedged run would hang indefinitely and block every later release behind it. Now a hang fails fast.Notes
yaml.safe_load).AI disclosure
Authored with assistance from Claude (Claude Code). See commit trailer.
🤖 Generated with Claude Code