forgot to check polymod's code 😭 #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: 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 |