[LICENSE] Use MIT License #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |