feat(android): auto-publish signed APK and AAR from CI #26

Merged
sirius merged 2 commits from wt/t_87d7245b into main 2026-09-12 04:59:41 +00:00
Showing only changes of commit c8693d2006 - Show all commits

fix(ci): android-release HTTPS apt mirrors and dry_run input
All checks were successful
ci / test (pull_request) Successful in 7m9s

dind timed out on http://deb.debian.org:80. Flip sources to HTTPS.
Do not let workflow_call's boolean false clobber dispatch dry_run.
Sirius DevOps 2026-09-12 01:00:42 -04:00
No known key found for this signature in database

View file

@ -72,17 +72,17 @@ jobs:
- name: Compute version
id: version
env:
INPUT_TAG: ${{ inputs.tag || github.event.inputs.tag }}
INPUT_DRY_RUN: ${{ inputs.dry_run || github.event.inputs.dry_run || 'false' }}
INPUT_TAG: ${{ github.event.inputs.tag || inputs.tag }}
INPUT_DRY_RUN: ${{ github.event.inputs.dry_run }}
CALL_DRY_RUN: ${{ inputs.dry_run }}
run: |
set -euo pipefail
cd "${GITHUB_WORKSPACE}"
git fetch --tags --force origin || true
input_tag="${INPUT_TAG:-}"
case "${INPUT_DRY_RUN:-false}" in
true|TRUE|True|1|yes|YES) dry_run=true ;;
*) dry_run=false ;;
esac
dry_run=false
case "${INPUT_DRY_RUN:-}" in true|TRUE|True|1|yes|YES) dry_run=true ;; esac
case "${CALL_DRY_RUN:-}" in true|TRUE|True|1|yes|YES) dry_run=true ;; esac
if [ -n "$input_tag" ]; then
ver="${input_tag#v}"
else
@ -122,7 +122,14 @@ jobs:
set -euo pipefail
cd "${GITHUB_WORKSPACE}"
export DEBIAN_FRONTEND=noninteractive
apt-get update
# T480 dind timed out on http://deb.debian.org:80 (Fastly). HTTPS works
# for Forgejo checkout; flip the debian mirrors before apt-get update.
if [ -f /etc/apt/sources.list ]; then
sed -i 's|http://deb.debian.org|https://deb.debian.org|g; s|http://security.debian.org|https://security.debian.org|g; s|http://deb.debian.org/debian-security|https://deb.debian.org/debian-security|g' /etc/apt/sources.list
fi
ls /etc/apt/sources.list.d 2>/dev/null || true
cat /etc/apt/sources.list || true
apt-get -o Acquire::Retries=3 -o Acquire::https::Timeout=60 update
apt-get install -y --no-install-recommends \
openjdk-17-jdk-headless python3 python3-minimal unzip curl ca-certificates \
file build-essential pkg-config git