forked from gta-chaos-mod/ChaosModV
-
Notifications
You must be signed in to change notification settings - Fork 1
77 lines (63 loc) · 2.16 KB
/
compile.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
name: Compile
on: push
jobs:
build:
runs-on: windows-latest
steps:
- name: setup-msbuild
uses: microsoft/[email protected]
- name: Enable Developer Command Prompt
uses: ilammy/[email protected]
- uses: actions/checkout@v3
- name: Setup
run: git submodule update --init --recursive
- name: Get NuGet Packages
run: msbuild ChaosMod.sln /t:restore /p:RestorePackagesConfig=true /p:Configuration=Release
- name: Compile Config App
run: dotnet publish ConfigApp -c Release
- name: Compile Voting Proxy
run: dotnet publish TwitchChatVotingProxy -c Release
- name: Compile ASI & Dependencies
run: |
cd ChaosMod
mkdir build
cd build
cmake -GNinja -DCMAKE_BUILD_TYPE="Release" -DWITH_DEBUG_PANEL_SUPPORT=1 ../
ninja
- name: Compile Voting Overlay
run: |
cd twitchVotingOverlay
npm install
npm run compile:prod
- name: Generate Native Definitions for Lua Runtime
run: |
cd scripts
python generate_natives.py
- name: Ready up for distribution
run: |
mkdir dist
cd dist
C:\msys64\usr\bin\wget.exe http://gopong.dev/chaos/data.zip
7z.exe x data.zip
rm data.zip
cp ../ChaosMod/build/ChaosMod.asi
cp ../ConfigApp/bin/x64/Release/net6.0-windows/win-x64/publish/ChaosModVConfig.exe chaosmod/
cp ../TwitchChatVotingProxy/bin/x64/Release/net6.0-windows/win-x64/publish/TwitchChatVotingProxy.exe chaosmod/
cp -r ../twitchVotingOverlay/dist chaosmod/twitchOverlay
cp ../scripts/natives_def.lua chaosmod/
cd ..
mkdir symbols
cd symbols
cp ../ChaosMod/build/ChaosMod.pdb
cp ../ConfigApp/bin/x64/Release/net6.0-windows/win-x64/publish/ChaosModVConfig.pdb
cp ../TwitchChatVotingProxy/bin/x64/Release/net6.0-windows/win-x64/publish/TwitchChatVotingProxy.pdb
- name: Upload :)
uses: actions/upload-artifact@v1
with:
name: chaosmod
path: dist
- name: Upload symbols too
uses: actions/upload-artifact@v1
with:
name: symbols
path: symbols