AmagnoVirtualPrinter/.github/workflows/build.yml
2023-05-30 13:20:50 +02:00

41 lines
No EOL
892 B
YAML

name: Build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_call:
jobs:
build:
strategy:
matrix:
configuration: [Release]
runs-on: windows-latest
env:
solution: AmagnoVirtualPrinter.sln
configuration: Release
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 /t:Restore /p:Configuration=$env:configuration
- name: Build solution
run: msbuild $env:solution /t:Rebuild /p:Configuration=$env:configuration
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: artifacts
path: files/**/*