Skip to content

Build APK

Build APK #308

Workflow file for this run

name: Build APK
on:
push:
#branches: [ "master", "main" ]
paths-ignore:
- '**.md'
- 'RELEASE_INFO'
- 'fastlane/**'
- '.github/workflows/*.yml'
workflow_dispatch: {}
# Cancel old runs
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
read_info:
timeout-minutes: 10 # Force timeout after this
runs-on: ubuntu-latest
outputs:
ver_name: ${{ steps.info.outputs.ver_name }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Extract VER_NAME
id: info
run: |
VER_NAME=$(grep '^VER_NAME=' RELEASE_INFO | cut -d= -f2- | tr -d '[:space:]')
[ -z "$VER_NAME" ] && { echo "$VER_NAME missing or empty"; exit 1; }
echo "ver_name=$VER_NAME" >> $GITHUB_OUTPUT
build_matrix:
needs: read_info
strategy:
fail-fast: false
matrix:
abi_type: ['arm64-v8a']
#abi_type: ['arm64-v8a', 'armeabi-v7a', 'x86_64']
#build_type: ['release']
build_type: ['release', 'debug']
uses: ./.github/workflows/_build-apk-reusable.yml
with:
abi_type: ${{ matrix.abi_type }}
build_type: ${{ matrix.build_type }}
override_ver_name: ${{ needs.read_info.outputs.ver_name }}
override_releaseOrBuild: false