-
-
Notifications
You must be signed in to change notification settings - Fork 6
54 lines (44 loc) · 1.38 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
name: Build
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
strategy:
matrix:
game_version: ["official", "steam"]
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: "recursive"
- name: Download SDK
run: |
$sdk_link = "${{ secrets.SDK_LINK }}"
Invoke-WebRequest -Uri $sdk_link -OutFile sdk.zip
Expand-Archive -Path sdk.zip -DestinationPath CppSDK
- name: Set up MSVC environment
uses: microsoft/setup-msbuild@v2
- uses: lukka/get-cmake@latest
- name: Configure TOF-SIH
run: cmake -B build -S . -DBUILD_STEAM_VERSION=${{ matrix.game_version == 'steam' && 'ON' || 'OFF' }}
- name: Build TOF-SIH
run: cmake --build build --config Release
- name: Configure Injector
run: cmake -B injector/build -S injector
- name: Build Injector
run: cmake --build injector/build --config Release
- name: Archive artifacts
uses: actions/upload-artifact@v4
with:
name: TOFInternal-${{ matrix.game_version }}
path: |
build/bin/Release/TOFInternal.dll
build/bin/Release/proc.exe
injector/build/bin/Release/injector.exe
injector/build/bin/Release/_aux.dll