Skip to content

update to C++20

update to C++20 #7

name: Build with Artifacts
on:
push:
tags:
- 'v*'
env:
# Path to the solution file relative to the root of the project.
SOLUTION_FILE_PATH: .
jobs:
build:
runs-on: windows-2022
strategy:
matrix:
configuration: [Release]
platform: [x64, ARM64]
steps:
- uses: actions/checkout@v2
- name: Add MSBuild to PATH
uses: microsoft/setup-msbuild@v1
- name: Restore NuGet packages
working-directory: ${{env.GITHUB_WORKSPACE}}
run: nuget restore ${{env.SOLUTION_FILE_PATH}}
- name: Build
working-directory: ${{env.GITHUB_WORKSPACE}}
run: msbuild /m /p:Configuration=${{ matrix.configuration }} /p:Platform=${{ matrix.platform }} ${{env.SOLUTION_FILE_PATH}}
- name: Upload Build Artifacts
uses: actions/upload-artifact@v2
with:
name: 'Win32CaptureSample_${{ matrix.platform }}_${{ matrix.configuration }}'
path: '.\${{ matrix.platform }}\${{ matrix.configuration }}\*'