-
Notifications
You must be signed in to change notification settings - Fork 8
122 lines (99 loc) · 5.09 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
116
117
118
119
120
121
122
name: CI
on:
push:
branches:
- main
- dev
paths:
- "FicsitRemoteMonitoring.uplugin"
- "Content/**"
- "Source/**"
pull_request:
branches:
- "main"
- "dev"
paths:
- "Content/**"
- "Source/**"
workflow_dispatch:
inputs:
ue_version_tag:
required: false
description: "Release of UnrealEngine-CSS to use. Will use the latest if unspecified"
workflow_call:
secrets:
WWISE_EMAIL:
required: true
WWISE_PASSWORD:
required: true
GH_TOKEN:
required: false
jobs:
build:
runs-on: self-hosted
steps:
- name: Cleanup
run: Remove-Item C:\workspace\SatisfactoryModLoader -Recurse -Force -Confirm:$false -ErrorAction Ignore
- name: Setup Unreal Engine
uses: mircearoata/satisfactory-modding-ue-action@master
with:
tag: ${{inputs.ue_version_tag}}
token: ${{ secrets.GH_TOKEN }}
- uses: actions/checkout@v2
with:
path: FicsitRemoteMontioring
- uses: actions/checkout@master
with:
repository: porisius/Disc-IT
ref: refs/heads/master
path: DiscIT
- uses: actions/checkout@master
with:
repository: porisius/JSONQuery
ref: refs/heads/master
path: JSONQuery
- uses: actions/checkout@master
with:
repository: porisius/ArduinoKit
ref: refs/heads/main
path: ArduinoKit
- uses: actions/checkout@master
with:
repository: satisfactorymodding/SatisfactoryModLoader
ref: refs/heads/dev
path: SatisfactoryModLoader
- name: Copy Project to Workspace
run: Copy-Item "$Env:GITHUB_WORKSPACE\\SatisfactoryModLoader" C:\workspace\ -Recurse -Force -Confirm:$false -ErrorAction Ignore
- name: Copy FicsitRemoteMontioring to Project
run: Copy-Item "$Env:GITHUB_WORKSPACE\\FicsitRemoteMontioring" C:\workspace\SatisfactoryModLoader\Mods\FicsitRemoteMonitoring -Recurse -Force -Confirm:$false -ErrorAction Ignore
- name: Copy Non-Public Source Files to Mod
run: Copy-Item C:\workspace\Source_Files\* C:\workspace\SatisfactoryModLoader\Mods\FicsitRemoteMonitoring\Source -Recurse -Force -Confirm:$false -ErrorAction Ignore
- name: Copy ArduinoKit to Project
run: Copy-Item "$Env:GITHUB_WORKSPACE\\ArduinoKit" C:\workspace\SatisfactoryModLoader\Mods\ArduinoKit -Recurse -Force -Confirm:$false -ErrorAction Ignore
- name: Copy DiscIT to Project
run: Copy-Item "$Env:GITHUB_WORKSPACE\\DiscIT" C:\workspace\SatisfactoryModLoader\Mods\DiscIT -Recurse -Force -Confirm:$false -ErrorAction Ignore
- name: Copy JSONQuery to Project
run: Copy-Item "$Env:GITHUB_WORKSPACE\\JSONQuery" C:\workspace\SatisfactoryModLoader\Mods\JSONQuery -Recurse -Force -Confirm:$false -ErrorAction Ignore
- 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 "C:\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: C:\workspace\ue\Engine\Build\BatchFiles\Build.bat -projectfiles -project='C:\workspace\SatisfactoryModLoader\FactoryGame.uproject' -game -rocket -progres
- name: Build for Development Editor
run: MSBuild.exe 'C:\workspace\SatisfactoryModLoader\FactoryGame.sln' /p:Configuration='Development Editor' /p:Platform='Win64' /t:'Games\FactoryGame' -m
- name: Build for Shipping/Client
run: MSBuild.exe 'C:\workspace\SatisfactoryModLoader\FactoryGame.sln' /p:Configuration='Shipping' /p:Platform='Win64' /t:'Games\FactoryGame' -m
#- name: Build for Win64 Dedicated Server
# run: MSBuild.exe 'C:\workspace\SatisfactoryModLoader\FactoryGame.sln' /p:Configuration='Shipping Server' /p:Platform='Win64' /t:'Games\FactoryGame' -m
#- name: Build for Linux Dedicated Server
# run: MSBuild.exe 'C:\workspace\SatisfactoryModLoader\FactoryGame.sln' /p:Configuration='Shipping Server' /p:Platform='Linux' /t:'Games\FactoryGame' -m
- name: Package FicsitRemoteMonitoring Mod
run: C:\workspace\ue\Engine\Build\BatchFiles\RunUAT.bat -ScriptsForProject='C:\workspace\SatisfactoryModLoader\FactoryGame.uproject' PackagePlugin -Project='C:\workspace\SatisfactoryModLoader\FactoryGame.uproject' -PluginName='FicsitRemoteMonitoring' -PluginTarget='Win64' -PluginTarget='Win64_Server' -PluginTarget='Linux_Server' -MergeArchive