-
Notifications
You must be signed in to change notification settings - Fork 1
96 lines (83 loc) · 3.09 KB
/
android.yml
File metadata and controls
96 lines (83 loc) · 3.09 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
name: Build Android
on:
workflow_dispatch:
push:
branches:
- main
jobs:
buildAndroid:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Cache haxelib
uses: actions/cache@v3
with:
path: C:\haxelib
key: haxelib-${{ runner.os }}-${{ hashFiles('haxelib.json', 'Project.xml') }}
restore-keys: |
haxelib-${{ runner.os }}-
- name: Setup Haxe
uses: krdlab/setup-haxe@master
with:
haxe-version: 4.2.5
- name: Install Haxelib
run: |
haxelib setup C:\haxelib
haxelib install lime 8.0.1 --quiet
haxelib install openfl 9.2.1 --quiet
haxelib install flixel 4.11.0 --quiet
haxelib install flixel-tools 1.5.1 --quiet
haxelib install flixel-ui 2.5.0 --quiet
haxelib install flixel-addons 3.0.2 --quiet
haxelib install hscript 2.5.0 --quiet
haxelib install hxCodec 2.5.1 --quiet
haxelib install Brewscript --quiet
haxelib install flixel-demos 2.9.0 --quiet
haxelib install flixel-templates 2.6.6 --quiet
haxelib install lime-samples 7.0.0 --quiet
haxelib git linc_luajit https://github.com/superpowers04/linc_luajit
haxelib install hxdiscord_rpc 1.3.0 --quiet
haxelib install flxanimate 3.0.4 --quiet
haxelib install hxcpp 4.2.1 --quiet
haxelib install android6permissions 0.2.1 --quiet
haxelib set flixel-addons 3.0.2
haxelib set flixel-demos 2.9.0
haxelib set flixel-templates 2.6.6
haxelib set flixel-tools 1.5.1
haxelib set flixel-ui 2.5.0
haxelib set flixel 4.11.0
haxelib set flxanimate 3.0.4
haxelib set hxcpp 4.2.1
haxelib set hscript 2.5.0
haxelib set lime-samples 7.0.0
haxelib set lime 8.0.1
haxelib set openfl 9.2.1
haxelib list
shell: cmd
- name: Setup Android SDK
uses: android-actions/setup-android@v2
- name: Install Android packages
run: |
sdkmanager "platform-tools" `
"platforms;android-19" `
"build-tools;19.1.0" `
"ndk;21.4.7075529"
- name: Set up Java 11
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 11
- name: Configure Lime Android Environment
run: |
Write-Output "ANDROID_SDK=$env:ANDROID_HOME" >> $env:GITHUB_ENV
Write-Output "ANDROID_NDK_ROOT=$env:ANDROID_HOME\ndk\21.4.7075529" >> $env:GITHUB_ENV
Write-Output "JAVA_HOME=$env:JAVA_HOME_11_X64" >> $env:GITHUB_ENV
haxelib run lime setup android
- name: Compile
run: haxelib run lime build android --app-version=${{ github.run_id }}
- name: Upload APK artifact
uses: actions/upload-artifact@v4
with:
name: androidBuild
path: export/release/android/bin/app/build/outputs/apk/debug/*.apk