-
Notifications
You must be signed in to change notification settings - Fork 26
126 lines (89 loc) · 4.96 KB
/
build-net7.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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
name: Build ALL (.Net 7)
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
env:
Solution_Name_MB1: "Media Blocks SDK/VisioForge.MediaBlocks.Demos.CS net7.sln"
Solution_Name_MB2: "Media Blocks SDK/VisioForge.MediaBlocks.Demos.CS Avalonia.sln"
Solution_Name_MP1: "Media Player SDK/VisioForge.MediaPlayer.Demos.CS (NuGet) net7.sln"
Solution_Name_MP2: "Media Player SDK X (crossplatform)/VisioForge.MediaPlayer.X.Demos.CS.Windows net7.sln"
Solution_Name_MP3: "Media Player SDK X (crossplatform)/VisioForge.MediaPlayer.X.Demos.CS.Avalonia.sln"
Solution_Name_VC1: "Video Capture SDK/VisioForge.VideoCapture.Demos.CS (NuGet) net7.sln"
Solution_Name_VC2: "Video Capture SDK/VisioForge.VideoCapture.Demos.CS Avalonia.sln"
Solution_Name_VC3: "Video Capture SDK/VisioForge.VideoCapture.Demos.CS.CV (NuGet) net7.sln"
Solution_Name_VC4: "Video Capture SDK X (crossplatform)/VisioForge.VideoCaptureX.Demos.CS net7.sln"
Solution_Name_VE1: "Video Edit SDK/VisioForge.VideoEdit.Demos.CS (NuGet) net7.sln"
Solution_Name_VE2: "Video Edit SDK X (crossplatform)/VisioForge.VideoEdit.X.Demos.CS.WinForms net7.sln"
Solution_Name_VE3: "Video Edit SDK X (crossplatform)/VisioForge.VideoEdit.X.Demos.CS.Avalonia.sln"
runs-on: windows-2022
steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: |
7.0.x
- name: Add msbuild to PATH
uses: microsoft/[email protected]
with:
vs-prerelease: true
## Media Blocks
- name: Restore dependencies $env:Solution_Name_MB1
run: dotnet restore $env:Solution_Name_MB1
- name: Build app for release $env:Solution_Name_MB1
run: msbuild $env:Solution_Name_MB1 -t:rebuild -verbosity:diag -property:Configuration=Release
- name: Restore dependencies $env:Solution_Name_MB2
run: dotnet restore $env:Solution_Name_MB2
- name: Build app for release $env:Solution_Name_MB2
run: msbuild $env:Solution_Name_MB2 -t:rebuild -verbosity:diag -property:Configuration=Release
## Media Player
- name: Restore dependencies $env:Solution_Name_MP1
run: dotnet restore $env:Solution_Name_MP1
- name: Build app for release $env:Solution_Name_MP1
run: msbuild $env:Solution_Name_MP1 -t:rebuild -verbosity:diag -property:Configuration=Release
- name: Restore dependencies $env:Solution_Name_MP2
run: dotnet restore $env:Solution_Name_MP2
- name: Build app for release $env:Solution_Name_MP2
run: msbuild $env:Solution_Name_MP2 -t:rebuild -verbosity:diag -property:Configuration=Release
- name: Restore dependencies $env:Solution_Name_MP3
run: dotnet restore $env:Solution_Name_MP3
- name: Build app for release $env:Solution_Name_MP3
run: msbuild $env:Solution_Name_MP3 -t:rebuild -verbosity:diag -property:Configuration=Release
## Video Capture
- name: Restore dependencies $env:Solution_Name_VC1
run: dotnet restore $env:Solution_Name_VC1
- name: Build app for release $env:Solution_Name_VC1
run: msbuild $env:Solution_Name_VC1 -t:rebuild -verbosity:diag -property:Configuration=Release
- name: Restore dependencies $env:Solution_Name_VC2
run: dotnet restore $env:Solution_Name_VC2
- name: Build app for release $env:Solution_Name_VC2
run: msbuild $env:Solution_Name_VC2 -t:rebuild -verbosity:diag -property:Configuration=Release
- name: Restore dependencies $env:Solution_Name_VC3
run: dotnet restore $env:Solution_Name_VC3
- name: Build app for release $env:Solution_Name_VC3
run: msbuild $env:Solution_Name_VC3 -t:rebuild -verbosity:diag -property:Configuration=Release
- name: Restore dependencies $env:Solution_Name_VC4
run: dotnet restore $env:Solution_Name_VC4
- name: Build app for release $env:Solution_Name_VC4
run: msbuild $env:Solution_Name_VC4 -t:rebuild -verbosity:diag -property:Configuration=Release
## Video Edit
- name: Restore dependencies $env:Solution_Name_VE1
run: dotnet restore $env:Solution_Name_VE1
- name: Build app for release $env:Solution_Name_VE1
run: msbuild $env:Solution_Name_VE1 -t:rebuild -verbosity:diag -property:Configuration=Release
- name: Restore dependencies $env:Solution_Name_VE2
run: dotnet restore $env:Solution_Name_VE2
- name: Build app for release $env:Solution_Name_VE2
run: msbuild $env:Solution_Name_VE2 -t:rebuild -verbosity:diag -property:Configuration=Release
- name: Restore dependencies $env:Solution_Name_VE3
run: dotnet restore $env:Solution_Name_VE3
- name: Build app for release $env:Solution_Name_VE3
run: msbuild $env:Solution_Name_VE3 -t:rebuild -verbosity:diag -property:Configuration=Release
# - name: Build
# run: dotnet build --no-restore _SOURCE\VisioForge.MediaFramework.Solution.sln
# - name: Test
# run: dotnet test --no-build --verbosity normal