-
Notifications
You must be signed in to change notification settings - Fork 55
115 lines (96 loc) · 4.87 KB
/
build.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
name: CI
on:
push:
branches:
- master
- dev
paths:
- "FicsItNetworks.uplugin"
- "Content/**"
- "Source/**"
- "ThirdParty/**"
pull_request:
branches:
- "master"
- "development"
paths:
- "Content/**"
- "Source/**"
- "ThirdParty/**"
workflow_dispatch:
workflow_call:
secrets:
WWISE_EMAIL:
required: true
WWISE_PASSWORD:
required: true
GH_TOKEN:
required: false
jobs:
build:
runs-on: windows-latest
steps:
- name: Cleanup
run: Remove-Item C:\workspace\SatisfactoryModLoader -Recurse -Force -Confirm:$false -ErrorAction Ignore
- uses: actions/checkout@master
with:
repository: satisfactorymodding/SatisfactoryModLoader
ref: refs/heads/dev
path: SatisfactoryModLoader
- uses: actions/checkout@v2
with:
path: SatisfactoryModLoader/Mods/FicsItNetworks
submodules: recursive
- name: List Stuff
run: |
dir SatisfactoryModLoader/Mods/FicsItNetworks
dir SatisfactoryModLoader/Mods/FicsItNetworks/ThirdParty
dir SatisfactoryModLoader/Mods/FicsItNetworks/ThirdParty/eris
dir SatisfactoryModLoader/Mods/FicsItNetworks/ThirdParty/eris/src
- name: Apply FG Patches
working-directory: SatisfactoryModLoader
run: git apply .\Mods\FicsItNetworks\SML_Patch.patch -v
- name: Create UE directory
run: mkdir ue
- name: Download, Extract and Setup UE
working-directory: ue
run: |
gh release download --repo satisfactorymodding/UnrealEngine -p "UnrealEngine-CSS-Editor-Win64.7z.*"
7z x UnrealEngine-CSS-Editor-Win64.7z.001
rm UnrealEngine-CSS-Editor-Win64.7z*
.\\SetupScripts\\Register.bat
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
- name: Add Wwise
run: |
gh release download --repo mircearoata/wwise-cli -p "wwise-cli.exe"
./wwise-cli.exe download --sdk-version "2022.1.5.8242" --filter Packages=SDK --filter DeploymentPlatforms=Windows_vc140 --filter DeploymentPlatforms=Windows_vc150 --filter DeploymentPlatforms=Windows_vc160 --filter DeploymentPlatforms=Windows_vc170 --filter DeploymentPlatforms=Linux --filter DeploymentPlatforms=
./wwise-cli.exe integrate-ue --integration-version "2022.1.5.2714" --project "${{ github.workspace }}\SatisfactoryModLoader\FactoryGame.uproject"
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
WWISE_EMAIL: ${{ secrets.WWISE_EMAIL }}
WWISE_PASSWORD: ${{ secrets.WWISE_PASSWORD }}
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v1
- name: Generate VS project files
run: ${{ github.workspace }}\ue\Engine\Build\BatchFiles\Build.bat -projectfiles -project='${{ github.workspace }}\SatisfactoryModLoader\FactoryGame.uproject' -game -rocket -progres
- name: Build for Development Editor
run: MSBuild.exe '${{ github.workspace }}\SatisfactoryModLoader\FactoryGame.sln' /p:Configuration='Development Editor' /p:Platform='Win64' /t:'Games\FactoryGame' -m
- name: Build for Shipping/Client
run: MSBuild.exe '${{ github.workspace }}\SatisfactoryModLoader\FactoryGame.sln' /p:Configuration='Shipping' /p:Platform='Win64' /t:'Games\FactoryGame' -m
# - name: Build for Win64 Dedicated Server
# run: MSBuild.exe '${{ github.workspace }}\SatisfactoryModLoader\FactoryGame.sln' /p:Configuration='Shipping Server' /p:Platform='Win64' /t:'Games\FactoryGame' -m
# - name: Build for Linux Dedicated Server
# run: MSBuild.exe '${{ github.workspace }}\SatisfactoryModLoader\FactoryGame.sln' /p:Configuration='Shipping Server' /p:Platform='Linux' /t:'Games\FactoryGame' -m
- name: Package FicsItNetworks Mod
run: ${{ github.workspace }}\ue\Engine\Build\BatchFiles\RunUAT.bat -ScriptsForProject='${{ github.workspace }}\SatisfactoryModLoader\FactoryGame.uproject' PackagePlugin -project='${{ github.workspace }}\SatisfactoryModLoader\FactoryGame.uproject' -clientconfig=Shipping -serverconfig=Shipping -DLCName='FicsItNetworks' -build -utf8output -platform=Win64 -nocompileeditor -installed -abslog="C:\Users\runneradmin\AppData\Roaming\Unreal Engine\AutomationTool\Logs\D+a+FicsIt-Networks+FicsIt-Networks+ue\Log.txt"
- name: Show Package Log
if: always()
run: more "C:\Users\runneradmin\AppData\Roaming\Unreal Engine\AutomationTool\Logs\D+a+FicsIt-Networks+FicsIt-Networks+ue\Log.txt"
- name: List Artifacts
run: |
dir ${{ github.workspace }}\SatisfactoryModLoader\Saved\ArchivedPlugins\FicsItNetworks\
- uses: actions/upload-artifact@v3
with:
name: FicsItNetworks-Windows
path: ${{ github.workspace }}\SatisfactoryModLoader\Saved\ArchivedPlugins\FicsItNetworks\FicsItNetworks-Windows.zip