forked from microsoft/Detours
-
Notifications
You must be signed in to change notification settings - Fork 6
38 lines (34 loc) · 1.1 KB
/
msbuild.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
name: MSBuild
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
SOLUTION_FILE_PATH: .\Source\KNSoft.SlimDetours.sln
permissions:
contents: read
jobs:
build:
strategy:
matrix:
platform: [x64, x86, ARM64]
config: [Debug, Release]
fail-fast: false
runs-on: windows-latest
steps:
- name: Source checkout
uses: actions/checkout@main
with:
submodules: recursive
- name: Prepare MSBuild
uses: microsoft/setup-msbuild@main
- name: Build
working-directory: ${{env.GITHUB_WORKSPACE}}
run: msbuild ${{env.SOLUTION_FILE_PATH}} /restore /m /p:Configuration=${{matrix.config}} /p:Platform=${{matrix.platform}} /p:RestorePackagesConfig=true
- name: Run Demo (x64, x86)
if: ${{ matrix.platform == 'x64' || matrix.platform == 'x86' }}
working-directory: ${{env.GITHUB_WORKSPACE}}
run: |
.\Source\OutDir\${{matrix.platform}}\${{matrix.config}}\Demo.exe -Run DeadLock -Engine=SlimDetours
.\Source\OutDir\${{matrix.platform}}\${{matrix.config}}\Demo.exe -Run DelayHook