forked from KadeArchive/Kade-Engine
-
-
Notifications
You must be signed in to change notification settings - Fork 4
168 lines (147 loc) · 6.86 KB
/
windows.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
# Windows pls
name: Windows 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:
- name: Do checkout pls
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 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 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 setup flixel -y
haxelib run lime setup -y
haxelib run lime rebuild extension-webm windows
haxelib run lime rebuild extension-webm android
haxelib run lime rebuild systools windows
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: 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.3.1"
# dir "C:\hostedtoolcache\windows\haxe\4.3.1\x64"
# dir "C:\hostedtoolcache\windows\haxe\4.3.1\x64\lib"
# dir "C:\hostedtoolcache\windows\haxe\4.3.1\x64\lib\flixel"
# wget "https://gist.github.com/JOELwindows7/118b3a40a76d60e701399a61fb5e1c2d/raw/fef2b6649a4b51d76f912459ef3f107b4bd25905/FlxAction.hx"
# dir
# pwd
# mv ".\FlxAction.hx" "C:\hostedtoolcache\windows\haxe\4.3.1\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.3.1\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 Windows now!
run: |
haxelib run lime build windows -final
- name: Artifact Windows now
uses: actions/upload-artifact@v2.2.4
with:
name: Windows Build
path: export/release/windows/bin
- name: Manually push to Itch Windows 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\windows\bin joelwindows7/last-funkin-moments:windows-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/windows/bin
asset_name: Windows Build
tag: ${{ github.ref }}
overwrite: true
# body: "This is my release text"