forked from KadeArchive/Kade-Engine
-
-
Notifications
You must be signed in to change notification settings - Fork 4
187 lines (165 loc) · 8.82 KB
/
winDroid.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
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
# This is a basic workflow to help you get started with Actions
name: Windows Droid Build CI
# Controls when the workflow will run
on: [push, pull_request]
env:
ANDROID_SDK_LOC: C:\Android\android-sdk
ANDROID_NDK_ROOT_LOC: C:\Android
ANDROID_CMD_LOC: C:\projects\android-cmd
permissions:
contents: write
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
# Steps represent a sequence of tasks that will be executed as part of the job
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: first, begin caching stuffs
uses: actions/cache@v2.1.7
id: cache-stuff
with:
path: |
D:\a\Kaded-fnf-mods\Kaded-fnf-mods\export\
C:\hostedtoolcache\haxe\
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}
- uses: krdlab/setup-haxe@v1.1.6
with:
haxe-version: 4.3.1
# Runs a set of commands using the runners shell
- name: Schlob Chocolatey
run: |
# choco install vcredist140
choco install make -y
choco install cmake -y
choco install gcc-arm -y
choco install gcc-arm-embedded -y
choco install wget -y # downloader
choco install butler -y # upload to itch io
choco install android-sdk -y
choco install android-ndk --version=16.2 -y
choco install adb -y
choco install androidstudio -y
choco install haxe -y
Import-Module $env:ChocolateyInstall\helpers\chocolateyProfile.psm1
RefreshEnv
- name: first, lemme download android stuff
run: |
wget -q -O android_ndk.zip https://dl.google.com/android/repository/android-ndk-r15c-windows-x86_64.zip?hl=fi
wget -q -O android_cmd.zip https://dl.google.com/android/repository/commandlinetools-win-7302050_latest.zip
wget -q -O android_build-tools.zip https://dl.google.com/android/repository/build-tools_r30.0.1-windows.zip
wget -q -O android_platforms.zip https://dl.google.com/android/repository/android-19_r04.zip
wget -q -O android_platform-tools.zip https://dl.google.com/android/repository/platform-tools_r31.0.2-windows.zip
unzip -q .\android_ndk.zip -d %ANDROID_NDK_ROOT_LOC%
unzip -q .\android_cmd.zip -d %ANDROID_SDK_LOC%
unzip -q -n .\android_build-tools.zip -d %ANDROID_SDK_LOC%\build-tools
unzip -q .\android_platforms.zip -d %ANDROID_SDK_LOC%
unzip -q -n .\android_platform-tools.zip -d %ANDROID_SDK_LOC%
- name: script run line haha
# if: steps.cache-stuff.outputs.cache-hit != 'true'
run: |
echo "new Psych's found-way of auto install all libraries"
echo 'https://github.com/ShadowMario/FNF-PsychEngine/blob/main/hmm.json'
haxelib install hmm
haxelib run hmm install
echo 'you should have all done.'
RefreshEnv
haxelib run lime rebuild extension-webm windows
haxelib run lime rebuild extension-webm android
haxelib run lime rebuild systools windows
haxelib run lime rebuild systools android
haxelib list
dir
pwd
- name: if there is cache still then just update everything
if: steps.cache-stuff.outputs.cache-hit == 'true'
run: |
haxe -version
haxelib update --always
haxelib run lime setup flixel -y
haxelib run lime setup -y
haxelib run lime rebuild extension-webm linux
haxelib run lime rebuild systools linux
haxelib run lime rebuild yagp linux
haxelib list
# - name: Obtain stuffs of Windows?
# run: |
# mkdir -p C:\hostedtoolcache\windows\haxe\4.2.5\x64\lib\linc_luajit\lib\Lua\lib\Android\Aarch64
# mkdir -p C:\hostedtoolcache\windows\haxe\4.2.5\x64\lib\linc_luajit\lib\Lua\lib\Android\arm
# mkdir -p C:\hostedtoolcache\windows\haxe\4.2.5\x64\lib\linc_luajit\lib\Lua\lib\Android\x86
# wget https://github.com/JOELwindows7/linc_luajit/raw/master/lib/Lua/lib/Android/Aarch64/libluajit-5.1.so
# wget https://github.com/JOELwindows7/linc_luajit/raw/master/lib/Lua/lib/Android/Aarch64/libluajit.so
# mv .\libluajit-5.1.so C:\hostedtoolcache\windows\haxe\4.2.5\x64\lib\linc_luajit\lib\Lua\lib\Android\Aarch64
# mv .\libluajit.so C:\hostedtoolcache\windows\haxe\4.2.5\x64\lib\linc_luajit\lib\Lua\lib\Android\Aarch64
# wget https://github.com/JOELwindows7/linc_luajit/raw/master/lib/Lua/lib/Android/arm/libluajit-5.1.so
# wget https://github.com/JOELwindows7/linc_luajit/raw/master/lib/Lua/lib/Android/arm/libluajit.so
# mv .\libluajit-5.1.so C:\hostedtoolcache\windows\haxe\4.2.5\x64\lib\linc_luajit\lib\Lua\lib\Android\arm
# mv .\libluajit.so C:\hostedtoolcache\windows\haxe\4.2.5\x64\lib\linc_luajit\lib\Lua\lib\Android\arm
# wget https://github.com/JOELwindows7/linc_luajit/raw/master/lib/Lua/lib/Android/x86/libluajit-5.1.so
# wget https://github.com/JOELwindows7/linc_luajit/raw/master/lib/Lua/lib/Android/x86/libluajit.so
# mv .\libluajit-5.1.so C:\hostedtoolcache\windows\haxe\4.2.5\x64\lib\linc_luajit\lib\Lua\lib\Android\x86
# mv .\libluajit.so C:\hostedtoolcache\windows\haxe\4.2.5\x64\lib\linc_luajit\lib\Lua\lib\Android\x86
- name: TEMP patch FlxAction.hx workaround
run: |
dir C:\
dir C:\hostedtoolcache
dir "C:\hostedtoolcache\windows"
dir "C:\hostedtoolcache\windows\haxe"
dir "C:\hostedtoolcache\windows\haxe\4.2.5"
dir "C:\hostedtoolcache\windows\haxe\4.2.5\x64"
dir "C:\hostedtoolcache\windows\haxe\4.2.5\x64\lib"
dir "C:\hostedtoolcache\windows\haxe\4.2.5\x64\lib\flixel"
wget "https://gist.github.com/JOELwindows7/118b3a40a76d60e701399a61fb5e1c2d/raw/fef2b6649a4b51d76f912459ef3f107b4bd25905/FlxAction.hx"
dir
pwd
mv ".\FlxAction.hx" "C:\hostedtoolcache\windows\haxe\4.2.5\x64\lib\flixel\4,11,0\flixel\input\actions\FlxAction.hx" -Force
- name: Setup Android support
run: |
haxelib run lime config ANDROID_SDK %ANDROID_SDK_LOC%
haxelib run lime config ANDROID_NDK_ROOT %ANDROID_NDK_ROOT_LOC%\android-ndk-r15c
haxelib run lime config ANDROID_SETUP true
haxelib run lime config JAVA_HOME C:\Program Files\Java\jdk1.8.0_211
- name: Manual Android NDLL download for extension-webm
run: |
wget https://github.com/Perkedel/After-Church/raw/master/RAW%20files/stray%20anything/Borkarounds/extension-webm/ndll/Android.zip
unzip .\Android.zip
mv ".\Android" "C:\hostedtoolcache\windows\haxe\4.2.5\x64\lib\extension-webm\git\ndll"
- name: Obtain Gamejolt empty key
run : |
wget https://gist.github.com/JOELwindows7/ba79db473ab5e4765293fb19c62240cb/raw/d5fc74359ec9ae272003c5d715d04b4dbbd7810d/GJkeys.hx
mv .\GJkeys.hx D:\a\Kaded-fnf-mods\Kaded-fnf-mods\source\GJKeys.hx
- name: Oh peck, I can't believe you've done this
run: |
echo butler check
butler -h
ls
pwd
- name: build Android now!
run: |
haxelib run lime build android -final
- name: Artifact Android now
uses: actions/upload-artifact@v2.2.4
with:
name: Android Build
path: export/release/android/bin/app/build/output/apk/Last Funkin Moments-debug.apk
- name: Manually push to Itch WinDroid because that Action container only support Linux wtf bro
env:
BUTLER_CREDENTIALS: ${{ secrets.BUTLER_CREDENTIALS }}
BUTLER_API_KEY: ${{ secrets.BUTLER_CREDENTIALS }}
run: |
ls
pwd
butler push D:\a\Kaded-fnf-mods\Kaded-fnf-mods\export\release\android\bin\app\build\output\apk\Last Funkin Moments-debug.apk joelwindows7/last-funkin-moments:android-GHAction
- name: Yo, release now
# uses: softprops/action-gh-release@v0.1.13
# if: startsWith(github.ref, 'refs/tags/')
# https://github.com/marketplace/actions/upload-files-to-a-github-release
uses: svenstaro/upload-release-action@2.3.0
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: export/release/android/bin/app/build/output/apk/Last Funkin Moments-debug.apk
asset_name: Android Build
tag: ${{ github.ref }}
overwrite: true
# body: "This is my release text"