8
8
9
9
jobs :
10
10
11
- # Build the whole PolySharp solution, in Debug
12
- build-solution-debug :
11
+ # Build the whole PolySharp solution
12
+ build-solution :
13
+ strategy :
14
+ matrix :
15
+ configuration : [Debug, Release]
13
16
runs-on : windows-2022
14
17
steps :
15
18
- name : Git checkout
16
19
uses : actions/checkout@v3
17
- - name : Setup .NET 6 SDK
18
- uses : actions/setup-dotnet@v3
19
- with :
20
- dotnet-version : 6.0.x
21
20
- name : Build
22
- run : dotnet build -c Debug /bl
21
+ run : dotnet build -c ${{matrix.configuration}} /bl
23
22
shell : cmd
24
23
- name : Upload MSBuild binary log
25
24
uses : actions/upload-artifact@v3
26
25
with :
27
- name : msbuild_log
26
+ name : msbuild_log_${{matrix.configuration}}
28
27
path : msbuild.binlog
29
28
if-no-files-found : error
30
29
31
- # Build the whole PolySharp solution, in Release
32
- build-solution-release :
33
- runs-on : windows-2022
34
- steps :
35
- - name : Git checkout
36
- uses : actions/checkout@v3
37
- - name : Setup .NET 6 SDK
38
- uses : actions/setup-dotnet@v3
39
- with :
40
- dotnet-version : 6.0.x
41
- - name : Build
42
- run : dotnet build -c Release /p:Configuration=Release
43
- shell : cmd
44
-
45
30
# Build the .msbuildproj projects to generate all the NuGet packages
46
31
build-packages :
47
32
if : success()
48
- needs : [build-solution-debug, build-solution-release ]
33
+ needs : [build-solution]
49
34
runs-on : windows-2022
50
35
steps :
51
36
- name : Git checkout
52
37
uses : actions/checkout@v3
53
- - name : Setup .NET 6 SDK
54
- uses : actions/setup-dotnet@v3
55
- with :
56
- dotnet-version : 6.0.x
57
38
- name : Build PolySharp package
58
39
run : dotnet build src\PolySharp.Package\PolySharp.Package.msbuildproj -c Release
59
40
shell : cmd
60
41
- name : Upload package artifacts
61
42
uses : actions/upload-artifact@v3
62
43
with :
63
- name : nuget_preview
44
+ name : nuget_packages
64
45
path : artifacts\*.nupkg
65
46
if-no-files-found : error
66
47
@@ -74,17 +55,13 @@ jobs:
74
55
steps :
75
56
- name : Git checkout
76
57
uses : actions/checkout@v3
77
- - name : Setup .NET 6 SDK
78
- uses : actions/setup-dotnet@v3
79
- with :
80
- dotnet-version : 6.0.x
81
58
- name : Create local NuGet feed
82
59
run : mkdir artifacts
83
60
shell : cmd
84
61
- name : Download package artifacts
85
62
uses : actions/download-artifact@v3
86
63
with :
87
- name : nuget_preview
64
+ name : nuget_packages
88
65
path : artifacts
89
66
- name : Build PolySharp.NuGet
90
67
run : dotnet build tests\PolySharp.NuGet\PolySharp.NuGet.csproj -c Release
0 commit comments