-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (36 loc) · 1.13 KB
/
build-game-android.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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