Build #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
# This is a basic workflow to help you get started with Actions | |
name: Build | |
# Controls when the action will run. | |
on: | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
jobs: | |
buildAndroid: | |
name: buildAndroid | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2.3.1 | |
- 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/setup-haxe@v1.1.5 | |
with: | |
haxe-version: 4.2.5 | |
- name: Install Haxelib | |
run: | | |
haxelib setup ~/haxelib | |
haxelib install hxcpp > /dev/null | |
haxelib install lime 8.1.1 | |
haxelib install openfl 9.3.2 | |
haxelib --never install flixel 4.11.0 | |
haxelib run lime setup flixel | |
haxelib install flixel-tools 1.5.1 | |
haxelib install flixel-ui 2.5.0 | |
haxelib install hscript 2.5.0 | |
haxelib install flixel-addons 2.11.0 | |
haxelib install hxvlc | |
haxelib git linc_luajit https://github.com/nebulazorua/linc_luajit.git | |
haxelib install extension-androidtools 1.4.0 | |
haxelib list | |
- name: Create Version Tag | |
run: echo "${{github.run_id}}" > VERSION | |
- 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 --app-version="4.0.0-${{ github.run_id}}" | |
- name: Publish Artifact | |
uses: actions/upload-artifact@v2.2.4 | |
with: | |
name: androidBuild | |
path: export/release/android/bin/app/build/outputs/apk/debug |