fix(ci): build Android APK in a bookworm sibling container
All checks were successful
ci / test (pull_request) Successful in 4m57s

node:20-bullseye (the amd64 job image) is EOL; apt-get there fails on
expired/404 security indexes. Run JDK 17 + SDK/NDK + cargo-ndk inside
eclipse-temurin:17-jdk-bookworm via docker create + stdin tar, matching
the Rust CI pattern. Fetch a static docker CLI if the job image lacks
one. On publish failure after creating a tag, delete that tag so the
next run retries the same version (first release stays v0.1.0).
This commit is contained in:
Sirius DevOps 2026-09-12 01:14:43 -04:00
commit c087b223e9
No known key found for this signature in database
2 changed files with 212 additions and 112 deletions

View file

@ -122,6 +122,9 @@ deobfuscation, not before.
## CI
`.forgejo/workflows/android-release.yml` runs on `docker-amd64` (T480 dind).
The job image is `node:20-bullseye` (EOL) — **do not apt-get there**. The
toolchain runs in a sibling `eclipse-temurin:17-jdk-bookworm` container
(stdin-tar + `docker cp`, same pattern as the Rust CI job).
Any push to `main` that touches `android/**` (or the local build script / this
workflow) builds `onionwire-<version>-android-arm64-v8a.apk` and
`onionwire-sdk-<version>.aar`, verifies them, and attaches them to the Forgejo