37 lines
868 B
YAML
37 lines
868 B
YAML
name: .NET Core Desktop
|
|
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
pull_request:
|
|
branches: [ main ]
|
|
|
|
jobs:
|
|
build:
|
|
strategy:
|
|
matrix:
|
|
configuration: [Release]
|
|
|
|
runs-on: windows-latest
|
|
|
|
env:
|
|
Solution_Name: AmagnoVirtualPrinter.sln
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
# Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild
|
|
- name: Setup MSBuild.exe
|
|
uses: microsoft/setup-msbuild@v1
|
|
|
|
- name: Restore the application
|
|
run: msbuild $env:Solution_Name /t:Restore /p:Configuration=$env:Configuration
|
|
env:
|
|
Configuration: ${{ matrix.configuration }}
|
|
|
|
- name: Build solution
|
|
run: msbuild $env:Solution_Name /t:Rebuild /p:Configuration=$env:Configuration
|
|
env:
|
|
Configuration: ${{ matrix.configuration }}
|