Provide release workflow for Android
This commit is contained in:
parent
684d943062
commit
cf844e6224
|
@ -10,6 +10,42 @@ defaults:
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
jobs:
|
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:
|
linux:
|
||||||
name: Linux (${{ matrix.arch }})
|
name: Linux (${{ matrix.arch }})
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue