ci(android): publish APK/AAR from the Pi runner
Build stays on docker-amd64. Attach artifacts on the Pi so POST /releases does not 422 from amd64 dind. Join v0.1.0 when that release is missing the APK instead of minting patch+1.
This commit is contained in:
parent
2b2ad573c0
commit
1f38ffd3ac
2 changed files with 82 additions and 43 deletions
19
README.md
19
README.md
|
|
@ -245,19 +245,26 @@ peer and a Linux peer that exchange invites interoperate — one protocol, not t
|
|||
- **APK** — `onionwire-<version>-android-arm64-v8a.apk`. Kotlin + Jetpack
|
||||
Compose + Material 3 messenger that depends on the SDK and nothing else.
|
||||
|
||||
It is not a WebView, and `src/tui.rs` is untouched. Both are built on a host with
|
||||
the Android SDK/NDK — the Pi runner is aarch64 Linux and cannot produce an APK:
|
||||
It is not a WebView, and `src/tui.rs` is untouched. The APK build itself is
|
||||
amd64-only — the Pi runner is aarch64 Linux and cannot produce an APK.
|
||||
[`.forgejo/workflows/android-release.yml`](.forgejo/workflows/android-release.yml)
|
||||
builds on `docker-amd64`, then a second job on the Pi (`docker`) attaches the
|
||||
APK + AAR (+ `.sha256`) to the same Forgejo tag as the Linux binaries. If that
|
||||
tag's release already exists and is missing the APK, the workflow **joins** it
|
||||
instead of minting patch+1. Publish does not run from amd64 dind: `POST /releases`
|
||||
from that egress returns 422 with an empty body.
|
||||
|
||||
```bash
|
||||
# one-time: sdkmanager platform 36 / build-tools 36.0.0 / ndk 28.2.13676358,
|
||||
# rustup target add aarch64-linux-android, cargo install cargo-ndk
|
||||
scripts/build-android-local.sh # -> dist/, with .sha256 files
|
||||
PUBLISH_TAG=v0.3.0 scripts/build-android-local.sh # + upload to that release
|
||||
PUBLISH_TAG=v0.1.0 scripts/build-android-local.sh # + upload to that release
|
||||
```
|
||||
|
||||
Every asset has a matching `.sha256` so `sha256sum -c` works. The APK is
|
||||
**debug-signed** and is for sideloading, not for Play. Full build notes, the
|
||||
`minSdk 26` rationale, the 16 KB page-size check and the signing story are in
|
||||
Every asset has a matching `.sha256` so `sha256sum -c` works. CI signs with the
|
||||
repo-owned release keystore. A local run without those env vars still
|
||||
debug-signs for sideload, not Play. Full build notes, the `minSdk 26`
|
||||
rationale, the 16 KB page-size check and the signing story are in
|
||||
[`android/README.md`](android/README.md).
|
||||
|
||||
## Releases (maintainers)
|
||||
|
|
|
|||
Loading…
Reference in a new issue