CI #27
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
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 |