-
Notifications
You must be signed in to change notification settings - Fork 115
85 lines (67 loc) · 2.45 KB
/
managed-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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
name: Build Managed
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
managed-build:
runs-on: windows-latest
steps:
- name: Checkout XamlBehaviors.git
uses: actions/checkout@v4
- name: Install the .NET 9.0.100 SDK
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.0.100
- name: Setup MSBuild
uses: microsoft/setup-msbuild@v2
- name: Setup/Install NuGet 6.11.0
uses: nuget/setup-nuget@v2
with:
nuget-version: '6.11.0'
- name: NuGet Restore BehaviorsSDKManaged.sln
run: nuget restore src\BehaviorsSDKManaged\BehaviorsSDKManaged.sln
- name: Build BehaviorsSDKManaged.sln
run: msbuild src\BehaviorsSDKManaged\BehaviorsSDKManaged.sln /p:Configuration=Release -v:diag /bl
- name: Upload MSBuild binary log
uses: actions/upload-artifact@v4
with:
name: msbuild_binlog_Release_x64
path: msbuild.binlog
if-no-files-found: error
- name: Build UWP package
run: msbuild /t:pack src\BehaviorsSDKManaged\Microsoft.Xaml.Interactivity.Uwp\Microsoft.Xaml.Interactivity.Uwp.csproj /p:Configuration=Release /p:TimestampPackage=true
- name: Build WinUI 3 package
run: msbuild /t:pack src\BehaviorsSDKManaged\Microsoft.Xaml.Interactivity.WinUI\Microsoft.Xaml.Interactivity.WinUI.csproj /p:Configuration=Release /p:TimestampPackage=true
- name: Upload NuGet packages
uses: actions/upload-artifact@v4
with:
name: nuget_packages
path: out\NuGetPackages\*.nupkg
if-no-files-found: error
samples-build:
runs-on: windows-latest
steps:
- name: Checkout XamlBehaviors.git
uses: actions/checkout@v4
- name: Install the .NET 9.0.100 SDK
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.0.100
- name: Setup MSBuild
uses: microsoft/setup-msbuild@v2
- name: Setup/Install NuGet 6.11.0
uses: nuget/setup-nuget@v2
with:
nuget-version: '6.11.0'
- name: NuGet Restore XAMLBehaviorsSample.sln
run: nuget restore samples\CS\XAMLBehaviorsSample.sln
- name: Build XAMLBehaviorsSample.sln
run: msbuild samples\CS\XAMLBehaviorsSample.sln /p:Configuration=Release -v:diag /bl
- name: Upload MSBuild binary log
uses: actions/upload-artifact@v4
with:
name: msbuild_samples_binlog_Release_x64
path: msbuild.binlog
if-no-files-found: error