Provide release workflow for Android

This commit is contained in:
Alexander Batalov 2022-07-26 10:49:47 +03:00
parent 684d943062
commit cf844e6224
1 changed files with 36 additions and 0 deletions

View File

@ -10,6 +10,42 @@ defaults:
shell: bash
jobs:
android:
name: Android
runs-on: ubuntu-latest
steps:
- name: Clone
uses: actions/checkout@v3
- name: Setup Java
uses: actions/setup-java@v2
with:
distribution: temurin
java-version: 11
cache: gradle
- name: Cache cmake build
uses: actions/cache@v3
with:
path: os/android/app/.cxx
key: android-cmake-v1
- name: Build
run: |
cd os/android
./gradlew assembleDebug
- name: Upload
run: |
cd os/android/app/build/outputs/apk/debug
cp app-debug.apk fallout2-ce-android.apk
gh release upload ${{ github.ref_name }} fallout2-ce-android.apk
rm fallout2-ce-android.apk
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
linux:
name: Linux (${{ matrix.arch }})