34 lines
826 B
YAML
34 lines
826 B
YAML
name: Build
|
|
|
|
on: [push]
|
|
|
|
env:
|
|
PROJ_AGENT: ./src/Prospect.Agent/Prospect.Agent.vcxproj
|
|
PROJ_LAUNCHER: ./src/Prospect.Launcher/Prospect.Launcher.csproj
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: windows-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Setup Dotnet
|
|
uses: actions/setup-dotnet@v1
|
|
with:
|
|
dotnet-version: '5.0.x'
|
|
|
|
- name: Setup MSBuild
|
|
uses: microsoft/setup-msbuild@v1.0.3
|
|
|
|
- name: Restore NuGet
|
|
run: dotnet restore ${{env.PROJ_LAUNCHER}}
|
|
|
|
- name: Install minhook
|
|
run: vcpkg install minhook:x64-windows-static
|
|
|
|
- name: Build Prospect.Agent
|
|
run: msbuild /m /p:Configuration=Release /p:Platform=x64 ${{env.PROJ_AGENT}}
|
|
|
|
- name: Build Prospect.Launcher
|
|
run: dotnet publish -o ./build-app -r win-x64 -c Release -v minimal ${{env.PROJ_LAUNCHER}}
|