Skip to content
This repository has been archived by the owner on Oct 3, 2024. It is now read-only.

Build Game for Android #218

Build Game for Android

Build Game for Android #218

name: Build Game for Android
on: 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: Make a Zip For Upload
run: cd export/release/android/bin/app/build/outputs/apk/debug && zip androidBuild.zip * && mv androidBuild.zip ${{ github.workspace }}
- name: Upload Artifact to Google Drive
uses: mathisve/gdrive-upload-action@main
with:
owerwrite: true
filename: androidBuild.zip
name: androidBuild.zip
credentials: ${{ secrets.GDRIVE_CREDENTIALS }}
folderId: ${{ secrets.GDRIVE_FOLDERID }}
encoded: true