-
Notifications
You must be signed in to change notification settings - Fork 20
38 lines (29 loc) · 941 Bytes
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Build
on:
push:
branches: [ master, main ] # Build on main/master branch
pull_request:
branches: [ master, main ] # Build on PR/MR that target main/master
jobs:
build:
timeout-minutes: 10
runs-on: 'windows-2022'
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup MSBuild path
uses: microsoft/[email protected]
with:
vs-version: '[17.0,)'
- name: Setup dot net
uses: actions/setup-dotnet@v2
with:
dotnet-version: 6.0.x
- name: Restore NuGet packages
run: nuget restore MFiles.VAF.Extensions.sln
- name: Build solution - RELEASE configuration
run: msbuild MFiles.VAF.Extensions.sln /nologo /verbosity:m /p:Configuration=Release /t:Build /p:DefineConstants="DONOTDEPLOY"
# Tests cannot be run as MFAPI is not installed.
# - name: Test
# run: dotnet test --no-restore --verbosity normal