forked from WistfulHopes/UE4SSMods
-
Notifications
You must be signed in to change notification settings - Fork 5
75 lines (61 loc) · 2.43 KB
/
build.yml
File metadata and controls
75 lines (61 loc) · 2.43 KB
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
name: MSVC Build
on: workflow_dispatch
env:
BUILD_CONFIGURATION: Game__Shipping__Win64
permissions:
contents: write
id-token: write
issues: write
jobs:
build:
runs-on: windows-latest
steps:
- name: Setup github SSH
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.UEPSEUDO_SSH_KEY }}
known_hosts: unnecessary
- name: Checkout SFV
uses: actions/checkout@v3
with:
submodules: recursive
fetch-depth: 0 # needed to get commits since last tag
ssh-key: ${{ secrets.UEPSEUDO_SSH_KEY }}
- name: Add MSBuild to PATH
uses: microsoft/setup-msbuild@v1.0.2
- name: Build
working-directory: ${{env.GITHUB_WORKSPACE}}
run: |
mkdir build
cd build
cmake -G "Visual Studio 17 2022" ..
msbuild /p:Configuration=${{env.BUILD_CONFIGURATION}} .\StriveFrameData\StriveFrameData.sln
msbuild /p:Configuration=${{env.BUILD_CONFIGURATION}} .\RE-UE4SS\UE4SS\proxy_generator\proxy\proxy.sln
- name: StandalonePackage
working-directory: ${{env.GITHUB_WORKSPACE}}
run: |
mkdir standalone\Mods\StriveFrameViewer\dlls
mkdir standalone\UE4SS_Signatures
cp .\build\StriveFrameData\${{env.BUILD_CONFIGURATION}}\StriveFrameData.dll .\standalone\Mods\StriveFrameViewer\dlls\main.dll
cp .\build\Output\${{env.BUILD_CONFIGURATION}}\proxy\bin\dwmapi.dll .\standalone\dwmapi.dll
cp .\build\Output\${{env.BUILD_CONFIGURATION}}\UE4SS\bin\UE4SS.dll .\standalone\UE4SS.dll
cp .\prereqs\mods.txt .\standalone\Mods\mods.txt
cp .\prereqs\UE4SS-settings.ini .\standalone\UE4SS-settings.ini
cp .\prereqs\FText_Constructor.lua .\standalone\UE4SS_Signatures\FText_Constructor.lua
- name: Upload Artifact
uses: actions/upload-artifact@v3.1.1
with:
name: StriveFrameViewer_Standalone
path: ${{github.workspace}}\standalone\
if-no-files-found: error
- name: UnverumPackage
working-directory: ${{env.GITHUB_WORKSPACE}}
run: |
mkdir unverum\ue4ss\StriveFrameViewer\dlls
cp .\build\StriveFrameData\${{env.BUILD_CONFIGURATION}}\StriveFrameData.dll .\unverum\ue4ss\StriveFrameViewer\dlls\main.dll
- name: Upload Artifact
uses: actions/upload-artifact@v3.1.1
with:
name: StriveFrameViewer_Unverum
path: ${{github.workspace}}\unverum\
if-no-files-found: error