Compile Android #2
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: Compile Android | |
on: [workflow_dispatch] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
- name: Setup Android NDK | |
uses: nttld/setup-ndk@v1 | |
id: setup-ndk | |
with: | |
ndk-version: r21e | |
- name: Setup Java JDK | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 11 | |
- name: Setup Android SDK | |
uses: android-actions/setup-android@v2 | |
- name: Setup Haxe | |
uses: krdlab/[email protected] | |
with: | |
haxe-version: 4.3.3 | |
- name: Install Haxelib | |
run: | | |
haxelib setup ~/haxelib | |
haxelib install hxcpp > /dev/null | |
haxelib install lime | |
haxelib install openfl | |
haxelib install flixel | |
haxelib install akifox-asynchttp | |
haxelib install extension-androidtools | |
haxelib run lime setup flixel | |
haxelib git hxcpp https://github.com/HaxeFoundation/hxcpp/ > /dev/null | |
haxelib --always set flixel 4.11.0 | |
haxelib --always set lime 8.0.2 | |
haxelib --always set openfl 9.1.0 | |
haxelib install flixel-ui 2.5.0 | |
haxelib list | |
- name: Setup Lime | |
run: | | |
haxelib run lime setup -alias -y | |
haxelib run lime config ANDROID_SDK $ANDROID_HOME | |
haxelib run lime config ANDROID_NDK_ROOT $ANDROID_NDK_HOME | |
haxelib run lime config JAVA_HOME $JAVA_HOME | |
haxelib run lime config ANDROID_SETUP true | |
env: | |
ANDROID_NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }} | |
- name: Compile | |
run: haxelib run lime build android -final | |
- name: Publish Artifact | |
uses: actions/[email protected] | |
with: | |
name: androidBuild | |
path: export/release/android/bin/app/build/outputs/apk/debug |