Skip to content

Commit 53b23c6

Browse files
author
Eugen Kremer
committed
start tests after build
1 parent 2822b53 commit 53b23c6

File tree

1 file changed

+43
-38
lines changed

1 file changed

+43
-38
lines changed

.github/workflows/build.yml

+43-38
Original file line numberDiff line numberDiff line change
@@ -11,41 +11,46 @@ jobs:
1111
configuration: [Debug, Release]
1212

1313
steps:
14-
- name: Checkout code
15-
uses: actions/[email protected]
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-
uses: actions/[email protected]
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+
uses: actions/[email protected]
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: Test
30+
run: |
31+
msbuild jn.sln /p:Configuration=${{ matrix.configuration }} /p:Platform=${{ matrix.platform }} -t:restore:build
32+
"${{ matrix.platform }}/${{ matrix.configuration }}/tests.exe"
33+
34+
- name: Create zip file
35+
run: |
36+
if ("${{ matrix.platform }}" -eq "x64"){
37+
Copy-Item ${{ matrix.platform}}/${{ matrix.configuration }}/*.dll ./deploy/
38+
} else {
39+
Copy-Item ${{ matrix.configuration }}/*.dll ./deploy/
40+
}
41+
42+
cd ./deploy
43+
7z a ../jN_${{ steps.nbgv.outputs.SemVer2 }}_${{ matrix.platform }}.zip *
44+
45+
- name: Upload artifacts
46+
uses: actions/[email protected]
47+
with:
48+
name: Build artifacts ${{ matrix.platform }} ${{ matrix.configuration }}
49+
path: |
50+
jN_*.zip
51+
${{ matrix.configuration }}/*.dll
52+
${{ matrix.configuration }}/*.pdb
53+
${{ matrix.platform }}/${{ matrix.configuration }}/*.dll
54+
${{ matrix.platform }}/${{ matrix.configuration }}/*.pdb
55+
56+
retention-days: 3

0 commit comments

Comments
 (0)