@@ -11,41 +11,45 @@ jobs:
11
11
configuration : [Debug, Release]
12
12
13
13
steps :
14
- - name : Checkout code
15
-
16
- with :
17
- fetch-depth : 0 # avoid shallow clone so nbgv can do its work.
18
-
19
- - uses : dotnet/nbgv@master
20
- id : nbgv
21
-
22
- - name : Setup MSBuild
23
- uses : microsoft/setup-msbuild@v2
24
-
25
- - name : Build with MSBuild
26
- run : |
27
- msbuild jN.vcxproj /p:Configuration=${{ matrix.configuration }} /p:Platform=${{ matrix.platform }} /p:VersionMajor=${{steps.nbgv.outputs.VersionMajor}} /p:VersionMinor=${{steps.nbgv.outputs.VersionMinor}} /p:BuildNumber=${{steps.nbgv.outputs.BuildNumber}} /p:VersionRevision=${{steps.nbgv.outputs.VersionRevision}}
28
-
29
- - name : Create zip file
30
- run : |
31
- if ("${{ matrix.platform }}" -eq "x64"){
32
- Copy-Item ${{ matrix.platform}}/${{ matrix.configuration }}/*.dll ./deploy/
33
- } else {
34
- Copy-Item ${{ matrix.configuration }}/*.dll ./deploy/
35
- }
36
-
37
- cd ./deploy
38
- 7z a ../jN_${{ steps.nbgv.outputs.SemVer2 }}_${{ matrix.platform }}.zip *
39
-
40
- - name : Upload artifacts
41
-
42
- with :
43
- name : Build artifacts ${{ matrix.platform }} ${{ matrix.configuration }}
44
- path : |
45
- jN_*.zip
46
- ${{ matrix.configuration }}/*.dll
47
- ${{ matrix.configuration }}/*.pdb
48
- ${{ matrix.platform }}/${{ matrix.configuration }}/*.dll
49
- ${{ matrix.platform }}/${{ matrix.configuration }}/*.pdb
50
-
51
- retention-days : 3
14
+ - name : Checkout code
15
+
16
+ with :
17
+ fetch-depth : 0 # avoid shallow clone so nbgv can do its work.
18
+
19
+ - uses : dotnet/nbgv@master
20
+ id : nbgv
21
+
22
+ - name : Setup MSBuild
23
+ uses : microsoft/setup-msbuild@v2
24
+
25
+ - name : Build with MSBuild
26
+ run : |
27
+ msbuild jN.vcxproj /p:Configuration=${{ matrix.configuration }} /p:Platform=${{ matrix.platform }} /t:RunTests
28
+
29
+ - name : Test
30
+ run : |
31
+ ${{ matrix.platform }}/${{ matrix.configuration }}/tests.exe
32
+
33
+ - name : Create zip file
34
+ run : |
35
+ if ("${{ matrix.platform }}" -eq "x64"){
36
+ Copy-Item ${{ matrix.platform}}/${{ matrix.configuration }}/*.dll ./deploy/
37
+ } else {
38
+ Copy-Item ${{ matrix.configuration }}/*.dll ./deploy/
39
+ }
40
+
41
+ cd ./deploy
42
+ 7z a ../jN_${{ steps.nbgv.outputs.SemVer2 }}_${{ matrix.platform }}.zip *
43
+
44
+ - name : Upload artifacts
45
+
46
+ with :
47
+ name : Build artifacts ${{ matrix.platform }} ${{ matrix.configuration }}
48
+ path : |
49
+ jN_*.zip
50
+ ${{ matrix.configuration }}/*.dll
51
+ ${{ matrix.configuration }}/*.pdb
52
+ ${{ matrix.platform }}/${{ matrix.configuration }}/*.dll
53
+ ${{ matrix.platform }}/${{ matrix.configuration }}/*.pdb
54
+
55
+ retention-days : 3
0 commit comments