forked from FunkinDroidTeam/Funkin
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (37 loc) · 1.35 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
42
43
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:
filename: androidBuild.zip
name: androidBuild.zip
credentials: ${{ secrets.GDRIVE_CREDENTIALS }}
folderId: ${{ secrets.GDRIVE_FOLDERID }}
encoded: true