funman300
eba1f66b45
fix(ci): use template-expanded paths in run scripts to bypass Docker ENV
...
Android Build / build-apk (push) Failing after 3m6s
Build and Deploy / build-and-push (push) Successful in 31s
Replace shell variable $ANDROID_HOME references in run blocks with
${{ env.ANDROID_SDK }} template expressions. Gitea runner v1 may not
override Docker-image-baked ENV vars via docker exec; template expansion
happens at workflow compilation time, so the literal path is hardcoded
into the script before the shell runs it.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-05-14 11:14:34 -07:00
funman300
8b30f8778b
fix(ci): use fresh /opt/android-sdk path to avoid container ENV conflict
...
Android Build / build-apk (push) Failing after 3m9s
Build and Deploy / build-and-push (push) Successful in 50s
Remove SDK detection logic and install directly to /opt/android-sdk,
matching the release workflow. The container Docker image has ANDROID_HOME
baked in at /usr/local/lib/android/sdk; installing there with sudo while
cargo-apk resolves ANDROID_HOME from the image ENV created a divergence.
Using a controlled path we own eliminates that class of conflict entirely.
Add SDK cache shared with the release workflow (same key prefix v2-).
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-05-14 11:07:46 -07:00
funman300
01d6b27e61
fix(ci): detect existing container SDK before installing, set ANDROID_HOME via GITHUB_ENV
...
Android Build / build-apk (push) Failing after 3m50s
Build and Deploy / build-and-push (push) Failing after 33s
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-05-14 10:53:14 -07:00
funman300
bb670d6cc6
fix(ci): drop ANDROID_SDK_ROOT, pass --sdk_root to sdkmanager explicitly
...
Android Build / build-apk (push) Failing after 3m19s
Build and Deploy / build-and-push (push) Successful in 30s
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-05-14 10:47:52 -07:00
funman300
8391235a1a
fix(ci): check android.jar existence in platform dir
...
Android Build / build-apk (push) Failing after 3m25s
Build and Deploy / build-and-push (push) Successful in 30s
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-05-14 10:41:57 -07:00
funman300
2f3a6b9586
fix(ci): dump env at build time to diagnose ANDROID_HOME visibility
...
Android Build / build-apk (push) Failing after 3m23s
Build and Deploy / build-and-push (push) Failing after 40s
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-05-14 10:37:37 -07:00
funman300
bfadcf0e0d
fix(ci): add SDK layout debug step to diagnose platforms-not-found error
...
Android Build / build-apk (push) Failing after 3m19s
Build and Deploy / build-and-push (push) Successful in 42s
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-05-14 10:28:10 -07:00
funman300
c90c783177
fix(ci): set ANDROID_HOME/NDK_HOME in workflow env block instead of GITHUB_ENV
...
Android Build / build-apk (push) Failing after 3m23s
Build and Deploy / build-and-push (push) Successful in 40s
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-05-14 10:23:58 -07:00
funman300
62be72e918
fix(ci): bust SDK cache key to force fresh SDK install after prior broken cache
...
Android Build / build-apk (push) Failing after 3m16s
Build and Deploy / build-and-push (push) Failing after 39s
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-05-14 10:18:57 -07:00
funman300
1f46785b31
fix(ci): add apt-get update before package install to fix exit code 100
...
Android Build / build-apk (push) Failing after 3m50s
Build and Deploy / build-and-push (push) Successful in 39s
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-05-14 10:14:32 -07:00
funman300
396ba6bc97
fix(ci): always install Java regardless of SDK cache hit; harden release creation
...
Android Build / build-apk (push) Failing after 13s
Build and Deploy / build-and-push (push) Successful in 38s
Android Release / build-release-apk (push) Failing after 11s
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-05-14 10:11:42 -07:00
funman300
ea079af9e1
ci: add Android APK build workflow
...
Android Build / build-apk (push) Failing after 59s
Build and Deploy / build-and-push (push) Successful in 26s
Triggers on every master push that touches app/engine/asset code
(ignores deploy/, argocd/, solitaire_server/, *.md).
Three-layer cache strategy:
1. Android SDK + NDK keyed by NDK + build-tools versions (~2 GB, stable)
2. cargo-apk binary keyed by OS + toolchain (avoids recompiling the tool)
3. Cargo registry + build artifacts keyed by Cargo.lock + SHA
Outputs a debug APK as a workflow artifact retained for 30 days.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-05-13 22:56:34 -07:00