Initial Beta build
All checks were successful
Validate and publish Kaleido / android (push) Successful in 2m27s

This commit is contained in:
Elijah 2026-10-24 09:09:55 -07:00
commit 2b585badac
65 changed files with 3535 additions and 0 deletions

View file

@ -0,0 +1,44 @@
name: Validate and publish Kaleido
on:
push:
branches: [main]
tags: ['v*']
workflow_dispatch:
jobs:
android:
runs-on: ubuntu-latest
container:
image: node:22-bookworm
timeout-minutes: 40
steps:
- uses: https://data.forgejo.org/actions/checkout@v4.4.0
- name: Install Android toolchain
run: |
set -eu
apt-get update
apt-get install -y --no-install-recommends openjdk-17-jdk-headless unzip curl python3 ca-certificates
mkdir -p .tools/sdk/cmdline-tools
curl -fsSL https://dl.google.com/android/repository/commandlinetools-linux-13114758_latest.zip -o .tools/cmdline.zip
unzip -q .tools/cmdline.zip -d .tools/sdk/cmdline-tools
mv .tools/sdk/cmdline-tools/cmdline-tools .tools/sdk/cmdline-tools/latest
curl -fsSL https://services.gradle.org/distributions/gradle-8.13-bin.zip -o .tools/gradle.zip
unzip -q .tools/gradle.zip -d .tools
yes | .tools/sdk/cmdline-tools/latest/bin/sdkmanager --sdk_root="$PWD/.tools/sdk" --licenses >/dev/null
.tools/sdk/cmdline-tools/latest/bin/sdkmanager --sdk_root="$PWD/.tools/sdk" 'platforms;android-36' 'build-tools;35.0.0'
keytool -genkeypair -keystore .tools/kaleido-signing.jks -storepass kaleido-local -keypass kaleido-local -alias kaleido -keyalg RSA -keysize 2048 -validity 1 -dname 'CN=Ephemeral CI validation' -noprompt
- name: Compile, test, lint, and verify the signed distribution
run: |
set -eu
export ANDROID_HOME="$PWD/.tools/sdk"
export GRADLE_USER_HOME="$PWD/.gradle"
.tools/gradle-8.13/bin/gradle --no-daemon assembleDebug testDebugUnitTest lintDebug
if test -f distribution/Kaleido.apk; then
(cd distribution && sha256sum -c Kaleido.apk.sha256)
.tools/sdk/build-tools/35.0.0/apksigner verify --verbose --print-certs distribution/Kaleido.apk
fi
- name: Publish signed tag release
if: startsWith(github.ref, 'refs/tags/v')
env:
KALEIDO_RELEASE_TOKEN: ${{ github.token }}
RELEASE_REF: ${{ github.ref }}
run: python3 scripts/publish_release.py