Added actions/cache@v3 for:
- ~/android-sdk (keyed on OS + API 34) — skips 150MB download
- ~/.gradle + android/.gradle-home (keyed on OS + gradle 8.7
+ gradle files hash) — skips 130MB gradle download + all
dependency resolution and jar caching
- ~/.cache/pip (keyed on requirements.txt hash) — skips
flask/click/werkzeug installs
Build step now checks if cached paths exist before downloading.
Expected speedup: 5-6 min → ~1-2 min on cache hits.
Removed tag-triggered release publishing since secrets.GITEA_TOKEN
is not available on this Gitea instance. CI now tests and verifies
the APK compiles. Releases created manually via API as shown with v1.0.0.
Release: https://gitea.ct.cozytren.ch/romane/agentbox-test/releases/tag/v1.0.0
Switched from 'zip -x' patterns (which don't handle .git/ correctly)
to 'find | zip -@' with explicit path exclusions. Release zip now
~130 KB instead of ~4.5 MB.
CI now triggers on tags matching 'v*':
- Builds APK (always, after tests pass)
- On tag push: creates a Gitea Release and attaches
meal-tracker.apk + meal-tracker.zip as release assets
- Removed CI artifact steps (replaced by release publishing)
The v1.0.0 release is live with APK (5.3 MB) and ZIP (134 KB).
CI runs with -o pipefail, so 'yes | sdkmanager --licenses' fails
with exit code 141 when sdkmanager closes stdin. Wrapped with
{ yes || true; } | ... || true to handle this gracefully.