37 lines
1.0 KiB
YAML
Vendored
37 lines
1.0 KiB
YAML
Vendored
name: MSBuild
|
|
|
|
on: [push]
|
|
|
|
env:
|
|
# Path to the solution file relative to the root of the project.
|
|
SOLUTION_FILE_PATH: .
|
|
|
|
jobs:
|
|
build_matrix:
|
|
strategy:
|
|
matrix:
|
|
BUILD_CONFIGURATION: [Release, ReleaseStatic, Debug, DebugStatic]
|
|
BUILD_PLATFORM: [x86, x64, ARM64]
|
|
|
|
runs-on: windows-2022
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3.1.0
|
|
|
|
- name: Add MSBuild to PATH
|
|
uses: microsoft/setup-msbuild@v1.1
|
|
with:
|
|
# vs-prerelease: true
|
|
msbuild-architecture: x64
|
|
|
|
- name: Restore NuGet packages
|
|
working-directory: ${{env.GITHUB_WORKSPACE}}
|
|
run: nuget restore ${{env.SOLUTION_FILE_PATH}}
|
|
|
|
- name: Build
|
|
working-directory: ${{env.GITHUB_WORKSPACE}}
|
|
# Add additional options to the MSBuild command line here (like platform or verbosity level).
|
|
# See https://docs.microsoft.com/visualstudio/msbuild/msbuild-command-line-reference
|
|
run: msbuild /m /p:Configuration=${{matrix.BUILD_CONFIGURATION}} /p:Platform=${{matrix.BUILD_PLATFORM}} ${{env.SOLUTION_FILE_PATH}}
|