JUST IN COSE #172
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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.2 | |
# 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: | | |
haxelib setup hmm | |
haxelib install Console.hx | |
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 setup sscript -y | |
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.3.2\x64\lib\linc_luajit\lib\Lua\lib\Android\Aarch64 | |
# mkdir -p C:\hostedtoolcache\windows\haxe\4.3.2\x64\lib\linc_luajit\lib\Lua\lib\Android\arm | |
# mkdir -p C:\hostedtoolcache\windows\haxe\4.3.2\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.3.2\x64\lib\linc_luajit\lib\Lua\lib\Android\Aarch64 | |
# mv .\libluajit.so C:\hostedtoolcache\windows\haxe\4.3.2\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.3.2\x64\lib\linc_luajit\lib\Lua\lib\Android\arm | |
# mv .\libluajit.so C:\hostedtoolcache\windows\haxe\4.3.2\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.3.2\x64\lib\linc_luajit\lib\Lua\lib\Android\x86 | |
# mv .\libluajit.so C:\hostedtoolcache\windows\haxe\4.3.2\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.3.2" | |
# dir "C:\hostedtoolcache\windows\haxe\4.3.2\x64" | |
# dir "C:\hostedtoolcache\windows\haxe\4.3.2\x64\lib" | |
# dir "C:\hostedtoolcache\windows\haxe\4.3.2\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.2\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.2\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" | |