Release #12
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: Release | |
on: workflow_dispatch | |
jobs: | |
Android: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
actions: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@main | |
with: | |
submodules: true | |
- name: Setup Android NDK | |
id: setup-ndk | |
uses: nttld/setup-ndk@main | |
with: | |
ndk-version: r25c | |
- name: Setup Java JDK | |
uses: actions/setup-java@main | |
with: | |
distribution: 'zulu' | |
java-version: '11' | |
- name: Setup Haxe | |
uses: krdlab/[email protected] | |
with: | |
haxe-version: 4.2.5 | |
- name: Installing Libraries | |
run: | | |
haxelib setup ~/haxelib | |
haxelib install lime 7.9.0 | |
haxelib git hxcpp https://github.com/HaxeFoundation/hxcpp --quiet | |
haxelib run lime rebuild hxcpp | |
haxelib install openfl 9.1.0 | |
haxelib install flixel 4.11.0 | |
haxelib install flixel-tools | |
haxelib install flixel-ui | |
haxelib install flixel-addons 2.11.0 | |
haxelib install hscript | |
haxelib install polymod 1.7.0 | |
haxelib install hxcpp-debug-server | |
haxelib list | |
- name: Configure Android | |
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 | |
haxelib set flixel-addons 2.11.0 | |
haxelib set flixel 4.11.0 | |
haxelib set openfl 9.1.0 | |
haxelib set lime 7.9.0 | |
haxelib set polymod 1.7.0 | |
env: | |
ANDROID_NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }} | |
- name: Building | |
run: haxelib run lime build android -final | |
- 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: warn | |
Publish: | |
needs: Android | |
runs-on: ubuntu-latest | |
permissions: write-all | |
steps: | |
- name: Download | |
uses: actions/download-artifact@main | |
with: | |
name: androidBuild | |
path: ${{github.workspace}} | |
- name: Publish | |
uses: marvinpinto/action-automatic-releases@latest | |
with: | |
repo_token: ${{secrets.GITHUB_TOKEN}} | |
prerelease: false | |
automatic_release_tag: 'v1.0.0' | |
title: 'FNF Minus Android Port Rework' | |
files: ${{github.workspace}}/FunkinMinus-debug.apk |