ci(android): publish APK/AAR from the Pi runner #38

Merged
sirius merged 1 commit from wt/t_0bbaca1b into main 2026-09-12 18:06:58 +00:00
Owner

Summary

  • Split android-release.yml: APK/AAR still build on docker-amd64; publish runs on the Pi (runs-on: docker), same path that made core run 135 succeed.
  • Reuses scripts/publish-release.sh already on main from PR #37 (no --retry-all-errors on 422; prints the Forgejo body). Script is unchanged.
  • Join behavior unchanged: latest tag v0.1.0 was missing the APK, so the non-dry dispatch attached to that release instead of minting v0.1.1. Core assets and the tag were not moved.

Why

POST /releases from amd64 dind returns HTTP 422 with an empty body (core run 116). The previous Android publish step ran publish-release.sh inside a bookworm sibling on that same egress, so a non-dry run was never attempted.

Concurrency

Left onionwire-android-release-v2 (PR #30). Putting this workflow in onionwire-ci-pi would hold the Pi cargo group for the whole amd64 APK build.

Dispatch (done)

Non-dry workflow_dispatch of wt/t_0bbaca1b (empty tag, dry_run=false).

Run: https://forgejo.siriusdevops.com/sirius/onionwire/actions/runs/136

  • android 8m22s (docker-amd64) — build + upload artifact
  • publish 10s — jobs/1 Checkout CI tooling / Download Android dist / Publish (create-or-join) 4s

Evidence

Release: https://forgejo.siriusdevops.com/sirius/onionwire/releases/tag/v0.1.0 (id 48)

asset bytes
onionwire-0.1.0-android-arm64-v8a.apk 33,152,896
onionwire-0.1.0-android-arm64-v8a.apk.sha256 104
onionwire-sdk-0.1.0.aar 7,223,286
onionwire-sdk-0.1.0.aar.sha256 90
onionwire-aarch64-unknown-linux-gnu 19,307,312 (unchanged)
onionwire-aarch64-unknown-linux-gnu.sha256 102
onionwire-x86_64-unknown-linux-gnu 21,138,640 (unchanged)
onionwire-x86_64-unknown-linux-gnu.sha256 101

file: APK is Android package (APK); AAR is Zip archive data.
sha256sum -c OK. sha256 apk=1e71cac61bdff745a4d748ab14193a4e401688245418e2f8099ae1b459fd9b78 aar=aa388431b6af4c938797d80ab60a137bef63602f19b2e6fb05f0295f48152bef.
Tag v0.1.0 still 9b7e72b257314d0d65c6649d7f1e432f7e616b1f.

Test plan

  • Dispatch run 136
  • Publish job is the Pi publish job (10s, not amd64 dind sibling)
  • GET v0.1.0 lists APK + AAR + checksums next to the 4 core binaries
  • Tag still at 9b7e72b
## Summary - Split `android-release.yml`: APK/AAR still build on `docker-amd64`; **publish runs on the Pi** (`runs-on: docker`), same path that made core run 135 succeed. - Reuses `scripts/publish-release.sh` already on `main` from PR #37 (no `--retry-all-errors` on 422; prints the Forgejo body). Script is unchanged. - Join behavior unchanged: latest tag `v0.1.0` was missing the APK, so the non-dry dispatch attached to that release instead of minting v0.1.1. Core assets and the tag were not moved. ## Why `POST /releases` from amd64 dind returns HTTP 422 with an empty body (core run 116). The previous Android publish step ran `publish-release.sh` inside a bookworm sibling on that same egress, so a non-dry run was never attempted. ## Concurrency Left `onionwire-android-release-v2` (PR #30). Putting this workflow in `onionwire-ci-pi` would hold the Pi cargo group for the whole amd64 APK build. ## Dispatch (done) Non-dry `workflow_dispatch` of `wt/t_0bbaca1b` (empty `tag`, `dry_run=false`). Run: https://forgejo.siriusdevops.com/sirius/onionwire/actions/runs/136 - `android` 8m22s (docker-amd64) — build + upload artifact - `publish` 10s — [jobs/1](https://forgejo.siriusdevops.com/sirius/onionwire/actions/runs/136/jobs/1) Checkout CI tooling / Download Android dist / Publish (create-or-join) 4s ## Evidence Release: https://forgejo.siriusdevops.com/sirius/onionwire/releases/tag/v0.1.0 (id 48) | asset | bytes | |---|---| | onionwire-0.1.0-android-arm64-v8a.apk | 33,152,896 | | onionwire-0.1.0-android-arm64-v8a.apk.sha256 | 104 | | onionwire-sdk-0.1.0.aar | 7,223,286 | | onionwire-sdk-0.1.0.aar.sha256 | 90 | | onionwire-aarch64-unknown-linux-gnu | 19,307,312 (unchanged) | | onionwire-aarch64-unknown-linux-gnu.sha256 | 102 | | onionwire-x86_64-unknown-linux-gnu | 21,138,640 (unchanged) | | onionwire-x86_64-unknown-linux-gnu.sha256 | 101 | `file`: APK is `Android package (APK)`; AAR is `Zip archive data`. `sha256sum -c` OK. sha256 apk=`1e71cac61bdff745a4d748ab14193a4e401688245418e2f8099ae1b459fd9b78` aar=`aa388431b6af4c938797d80ab60a137bef63602f19b2e6fb05f0295f48152bef`. Tag `v0.1.0` still `9b7e72b257314d0d65c6649d7f1e432f7e616b1f`. ## Test plan - [x] Dispatch run 136 - [x] Publish job is the Pi `publish` job (10s, not amd64 dind sibling) - [x] GET v0.1.0 lists APK + AAR + checksums next to the 4 core binaries - [x] Tag still at 9b7e72b
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.
sirius force-pushed wt/t_0bbaca1b from 1f38ffd3ac to 601eb35c4b 2026-09-12 17:53:35 +00:00 Compare
sirius left a comment

Sign-off (order 1 of 7): this PR merges first — it owns README.md, which five later cards deferred wording into.

Sign-off (order 1 of 7): this PR merges first — it owns README.md, which five later cards deferred wording into.
sirius merged commit 4338e8aeb6 into main 2026-09-12 18:06:58 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
sirius/onionwire!38
No description provided.