Skip to content
name: Build Game for Android
on:
push:
branches: [ main, develop ]
workflow_dispatch:
jobs:
Android:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@main
with:
submodules: true
- name: Setup Haxe
uses: krdlab/setup-haxe@master
with:
haxe-version: 4.3.6
- name: Restore Build Cache
uses: actions/cache@v3
with:
key: cache-build-android
path: |
export/release/android/haxe/
export/release/android/obj/
restore-keys: |
cache-build-android
- name: Install Libraries
run: |
haxelib git hmm https://github.com/FunkinCrew/hmm.git skip-deps --quiet
haxelib run hmm install --quiet
haxelib run lime rebuild hxcpp
- name: Configure Android
run: |
haxelib run lime config ANDROID_SDK $ANDROID_HOME
haxelib run lime config ANDROID_NDK_ROOT $ANDROID_NDK_LATEST_HOME
haxelib run lime config JAVA_HOME $JAVA_HOME_17_X64
haxelib run lime config ANDROID_SETUP true
- name: Compile
run: haxelib run lime build android
- name: Upload Artifact
uses: actions/upload-artifact@main
with:
name: androidBuild
path: export/release/android/bin/app/build/outputs/apk/debug
if-no-files-found: error