1414
1515jobs :
1616
17- build :
17+ build-debug :
1818 strategy :
1919 matrix :
2020 os : [ubuntu-latest, windows-latest]
@@ -35,11 +35,11 @@ jobs:
3535 - name : Restore dependencies
3636 run : dotnet restore
3737 - name : Build
38- run : dotnet build --no-restore
38+ run : dotnet build --no-restore -c debug
3939
40- test :
40+ test-debug :
4141
42- needs : build
42+ needs : build-debug
4343
4444 strategy :
4545 matrix :
@@ -53,22 +53,44 @@ jobs:
5353 runs-on : ${{ matrix.os }}
5454
5555 steps :
56+ - uses : actions/checkout@v3
57+ - name : Setup dotNET
58+ uses : actions/setup-dotnet@v3
59+ with :
60+ dotnet-version : ${{ matrix.dotnet-version }}
61+ - name : Restore dependencies
62+ run : dotnet restore
63+ - name : Build
64+ run : dotnet build --no-restore -c Debug
5665 - name : Test
5766 run : dotnet test --no-build --verbosity normal
5867
59- deploy-doc :
60-
61- needs : [build, test]
62-
68+ build-and-test-release :
69+
70+ needs : [build-debug, test-debug]
71+
72+ defaults :
73+ run :
74+ working-directory : ./src
75+
6376 runs-on : ubuntu-latest
6477
6578 steps :
66- - name : Deploy documentation
67- run : echo "Deploy documentation"
79+ - uses : actions/checkout@v3
80+ - name : Setup dotNET
81+ uses : actions/setup-dotnet@v3
82+ with :
83+ dotnet-version : 7.x
84+ - name : Restore dependencies
85+ run : dotnet restore
86+ - name : Build
87+ run : dotnet build --no-restore -c Release
88+ - name : Test
89+ run : dotnet test --no-build --verbosity normal
6890
6991 publish-nuget :
7092
71- needs : [build, test]
93+ needs : [build-and- test-release ]
7294
7395 defaults :
7496 run :
@@ -85,6 +107,17 @@ jobs:
85107 # run: dotnet nuget push */bin/Release/*.nupkg -k $NUGET_AUTH_TOKEN -s https://api.nuget.org/v3/index.json
86108 # env:
87109 # NUGET_AUTH_TOKEN: ${{ secrets.NUGET_TOKEN }}
110+
111+ deploy-doc :
112+
113+ needs : [build-debug, test-debug]
114+
115+ runs-on : ubuntu-latest
116+
117+ steps :
118+ - uses : actions/checkout@v3
119+ - name : Deploy documentation
120+ run : echo "Deploy documentation"
88121
89122
90123
0 commit comments