Files
AudioManagerClient/.gitea/workflows/ci.yaml
T
TapTap 9b105b3925
CI / build (push) Failing after 33s
build: target API 36 and sign Play upload bundles
- compileSdk/targetSdk 36: Google Play rejects new apps below API 36 since
  31 August 2026.
- Release signing from ANDROID_KEYSTORE_* environment variables or
  local.properties; unsigned when no upload key is configured.
- versionCode/versionName overridable via VERSION_CODE/VERSION_NAME.
- scripts/build-release-aab.sh builds and verifies a signed AAB.
- CI installs platform 36 until the CI image is rebuilt.
- Document the internal-testing upload flow.
2026-11-15 18:39:24 +00:00

73 lines
2.3 KiB
YAML

name: CI
on:
workflow_dispatch:
push:
branches:
- main
tags:
- "v*"
pull_request:
env:
# Built by scripts/build-ci-image.sh from ci/Dockerfile.
CI_IMAGE: gitea.tap-tap.win/taptap/audiomanager-client-ci:3
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
container:
image: gitea.tap-tap.win/taptap/audiomanager-client-ci:3
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
# The app targets API 36, which Play requires for new uploads. The CI
# image still ships API 35, so install 36 on demand until it is rebuilt.
- name: Ensure Android SDK 36
run: |
set -euo pipefail
if [ ! -d "$ANDROID_HOME/platforms/android-36" ]; then
yes | "$ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager" \
"platforms;android-36" "build-tools;36.0.0" >/dev/null
fi
- name: Test and build
run: |
set -euo pipefail
if [[ "$GITHUB_REF" == refs/tags/* ]]; then
gradle \
:composeApp:desktopTest \
:composeApp:assembleDebug \
:composeApp:packageUberJarForCurrentOS \
:composeApp:wasmJsBrowserDistribution \
--console=plain
else
# The optimized Wasm build is CPU-bound and slow; main/PR builds
# only need to prove the web target compiles and bundles.
gradle \
:composeApp:desktopTest \
:composeApp:assembleDebug \
:composeApp:wasmJsBrowserDevelopmentExecutableDistribution \
--console=plain
fi
- name: Collect artifacts
run: |
set -euo pipefail
mkdir -p dist
cp composeApp/build/outputs/apk/debug/composeApp-debug.apk dist/AudioManager.apk
if [[ "$GITHUB_REF" == refs/tags/* ]]; then
cp composeApp/build/compose/jars/*.jar dist/AudioManager-desktop.jar
(cd composeApp/build/dist/wasmJs/productionExecutable && zip -qr "$GITHUB_WORKSPACE/dist/AudioManager-web.zip" .)
fi
- name: Publish release assets
if: startsWith(github.ref, 'refs/tags/')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: scripts/publish-release.sh dist