Files
vcmi/.github/workflows/aab-from-build.yml
T
dependabot[bot] bc701a2e9c Bump actions/checkout from 4 to 5
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 5.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-12 14:22:25 +00:00

51 lines
1.3 KiB
YAML

name: Create AAB from archived android build dir
on:
workflow_dispatch:
inputs:
build_dir_xz_url:
description: 'URL to XZ-archived android build dir'
required: true
type: string
jobs:
aab:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v5
with:
sparse-checkout: CI/android
- name: Install JDK
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '11'
- name: Download & unpack archive
run: curl -L '${{ inputs.build_dir_xz_url }}' | tar -xf - --xz
- name: Build aab
run: |
set -x
repoPath="$(pwd)"
cd android-build
sed -iEe "s|qt5AndroidDir=.+|qt5AndroidDir=$(pwd)/qt5AndroidDir|" gradle.properties
echo "sdk.dir=$ANDROID_HOME" > local.properties
echo "signingRoot=$repoPath/CI/android" > vcmi-app/gradle.properties
./gradlew bundleRelease
ANDROID_AAB_PATH="$(ls vcmi-app/build/outputs/bundle/release/*.aab)"
echo "ANDROID_AAB_PATH=$ANDROID_AAB_PATH" >> $GITHUB_ENV
- name: Artifact
uses: actions/upload-artifact@v4
with:
name: aab
compression-level: 0
path: |
${{ env.ANDROID_AAB_PATH }}