Skip to content

Merge pull request #94 from RayshenOmega/main #189

Merge pull request #94 from RayshenOmega/main

Merge pull request #94 from RayshenOmega/main #189

Workflow file for this run

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: Move Injector Files
run: |
Move-Item injector/build/bin/Release/injector.exe build/bin/Release/injector.exe
Move-Item injector/build/bin/Release/_aux.dll build/bin/Release/_aux.dll
- 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
build/bin/Release/injector.exe
build/bin/Release/_aux.dll