forked from KadeArchive/Kade-Engine
-
-
Notifications
You must be signed in to change notification settings - Fork 4
123 lines (108 loc) · 4.82 KB
/
linux.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
name: Linux Build CI
# JOELwindows7: have write permission pls
permissions:
contents: write
# Controls when the workflow will run
on: [push, pull_request]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-22.04
# bruh, that's it? thancc BOLO, I didn't see that up. anyway, how to cutting edge for it anyway?
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- uses: actions/checkout@v2
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Uname pls
run: |
uname -a
- name: first, begin caching stuffs
uses: actions/cache@v2.1.7
id: cache-stuff
with:
path: |
~/work/Kaded-fnf-mods/Kaded-fnf-mods/export/
/opt/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: Linuxly set things up first!
run: |
sudo apt-get update
sudo apt upgrade -y
sudo apt install luajit -y
sudo apt install build-essential avr-libc libc6-dev libpng12-dev -y
sudo apt-get install gcc g++ gcc-multilib g++-multilib -y
sudo apt install gcc-9 g++-9 gcc-9-multilib g++-9-multilib -y
sudo apt install libgl1-mesa-dev libglu1-mesa-dev libasound2-dev libx11-dev libxext-dev libxi-dev libxrandr-dev libxinerama-dev -y
sudo apt-get install libvlc-dev
sudo apt-get install libvlccore-dev
sudo apt-get install vlc-bin
sudo apt-get -y install libidn2-0 libidn12 libidn2-dev
- name: script run line haha
# if: steps.cache-stuff.outputs.cache-hit != 'true'
run: |
haxe -version
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.'
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: 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 Linux
# run: |
# wget https://github.com/nebulazorua/linc_luajit/raw/master/lib/lua/lib/Linux64/libluajit.so
# sudo mkdir -p /opt/hostedtoolcache/haxe/4.2.5/x64/lib/linc_luajit/lib/lua/lib/Linux64
# sudo mv ./libluajit.so /opt/hostedtoolcache/haxe/4.2.5/x64/lib/linc_luajit/lib/lua/lib/Linux64/libluajit.so
- name: Obtain GameJolt empty file
run: |
wget https://gist.github.com/JOELwindows7/ba79db473ab5e4765293fb19c62240cb/raw/d5fc74359ec9ae272003c5d715d04b4dbbd7810d/GJkeys.hx
mv ./GJkeys.hx /home/runner/work/Kaded-fnf-mods/Kaded-fnf-mods/source/GJKeys.hx
- name: Build Linux now
run: |
haxelib run lime build linux -final
- uses: actions/upload-artifact@v2
with:
name: Linux Build
path: export/release/linux/bin
- name: Push to Itch Linux
if: ${{github.event_name == 'push'}}
uses: josephbmanley/butler-publish-itchio-action@master
env:
BUTLER_CREDENTIALS: ${{ secrets.BUTLER_CREDENTIALS }}
CHANNEL: linux-GHAction
ITCH_GAME: last-funkin-moments
ITCH_USER: joelwindows7
PACKAGE: export/release/linux/bin
- 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/linux/bin
asset_name: Linux Build
tag: ${{ github.ref }}
overwrite: true
# body: "This is my release text"