-
Notifications
You must be signed in to change notification settings - Fork 140
45 lines (36 loc) · 1.11 KB
/
main.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
39
40
41
42
43
44
45
name: Build Managed
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
managed-build:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0 # avoid shallow clone so nbgv can do its work.
- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: 6.0.x
- name: Setup MSBuild.exe
uses: microsoft/setup-msbuild@v1.0.2
- name: Restore
run: nuget restore src\BehaviorsSdk.sln
- name: Build
run: msbuild src\BehaviorsSdk.sln /p:Configuration=Release /p:SignType=real
- name: Run Tests
uses: microsoft/vstest-action@v1.0.0
with:
testAssembly: Test\UnitTests\bin\Release\net462\UnitTests.dll
- name: Pack Behaviors
if: success()
run: msbuild src\Microsoft.Xaml.Behaviors\Microsoft.Xaml.Behaviors.csproj /p:Configuration=Release -t:pack
- name: Upload NuGet Artifacts
if: success()
uses: actions/upload-artifact@v2
with:
path: src\Microsoft.Xaml.Behaviors\bin\Release\*.nupkg