49 lines
1.2 KiB
YAML
49 lines
1.2 KiB
YAML
name: Build
|
|
|
|
on:
|
|
push:
|
|
paths:
|
|
- ./src/Prospect.Agent/**
|
|
- ./src/Prospect.Launcher/**
|
|
|
|
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: '6.0.x'
|
|
|
|
- name: Setup MSBuild
|
|
uses: microsoft/setup-msbuild@v1.0.3
|
|
|
|
- name: Restore NuGet
|
|
run: dotnet restore ${{env.PROJ_LAUNCHER}}
|
|
|
|
- name: Install Prospect.Agent dependencies
|
|
run: |
|
|
vcpkg integrate install
|
|
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 ./Prospect-Launcher -r win-x64 -c Release -v minimal ${{env.PROJ_LAUNCHER}}
|
|
|
|
- name: Compress Prospect.Launcher
|
|
run: 7z a launcher.zip ./Prospect-Launcher
|
|
|
|
- uses: actions/upload-artifact@v2
|
|
with:
|
|
name: Prospect.Launcher
|
|
path: ./launcher.zip
|
|
retention-days: 14
|