4
4
pull_request :
5
5
push :
6
6
7
+ permissions : write-all
8
+
7
9
jobs :
8
- build-windows :
10
+
11
+ build-windows-core :
12
+ runs-on : windows-latest
13
+ steps :
14
+ - name : Disable Windows Defender
15
+ run : Set-MpPreference -DisableRealtimeMonitoring $true
16
+ shell : powershell
17
+ - uses : actions/checkout@v3
18
+ - name : Run task 'Build'
19
+ shell : cmd
20
+ run : |
21
+ call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
22
+ ./build.cmd Build
23
+ - name : Run task 'InTestsCore'
24
+ shell : cmd
25
+ run : |
26
+ call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
27
+ ./build.cmd InTestsCore -e
28
+ - name : Upload test results
29
+ uses : actions/upload-artifact@v2
30
+ if : always()
31
+ with :
32
+ name : build-windows-core-trx
33
+ path : " **/*.trx"
34
+
35
+ build-windows-full :
9
36
runs-on : windows-latest
10
37
steps :
11
- - uses : actions/checkout@v3
12
- - name : Run
13
- shell : cmd
14
- run : |
15
- call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
16
- ./build.bat
38
+ - name : Disable Windows Defender
39
+ run : Set-MpPreference -DisableRealtimeMonitoring $true
40
+ shell : powershell
41
+ - uses : actions/checkout@v3
42
+ - name : Run task 'Build'
43
+ shell : cmd
44
+ run : |
45
+ call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
46
+ ./build.cmd Build
47
+ - name : Run task 'InTestsFull'
48
+ shell : cmd
49
+ run : |
50
+ call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
51
+ ./build.cmd InTestsFull -e
52
+ - name : Upload test results
53
+ uses : actions/upload-artifact@v2
54
+ if : always()
55
+ with :
56
+ name : build-windows-full-trx
57
+ path : " **/*.trx"
58
+
17
59
build-linux :
18
60
runs-on : ubuntu-latest
19
61
steps :
20
- - uses : actions/checkout@v3
21
- - name : Set up Clang
22
- uses : egor-tensin/setup-clang@v1
23
- with :
24
- version : latest
25
- platform : x64
26
- - name : Set up zlib-static
27
- run : sudo apt-get install -y libkrb5-dev
28
- - name : Run
29
- run : ./build.sh
62
+ - uses : actions/checkout@v3
63
+ - name : Set up Clang
64
+ uses : egor-tensin/setup-clang@v1
65
+ with :
66
+ version : latest
67
+ platform : x64
68
+ - name : Set up zlib-static
69
+ run : sudo apt-get install -y libkrb5-dev
70
+ - name : Run task 'Build'
71
+ run : ./build.cmd Build
72
+ - name : Run task 'UnitTests'
73
+ run : ./build.cmd UnitTests -e
74
+ - name : Run task 'InTestsCore'
75
+ run : ./build.cmd InTestsCore -e
76
+ - name : Upload test results
77
+ uses : actions/upload-artifact@v2
78
+ if : always()
79
+ with :
80
+ name : build-linux-trx
81
+ path : " **/*.trx"
82
+
30
83
build-macos :
31
- runs-on : macOS-latest
84
+ runs-on : macos-13
85
+ steps :
86
+ - uses : actions/checkout@v3
87
+ - name : Run task 'Build'
88
+ run : ./build.cmd Build
89
+ - name : Run task 'UnitTests'
90
+ run : ./build.cmd UnitTests -e
91
+ - name : Run task 'InTestsCore'
92
+ run : ./build.cmd InTestsCore -e
93
+ - name : Upload test results
94
+ uses : actions/upload-artifact@v2
95
+ if : always()
96
+ with :
97
+ name : build-macos-trx
98
+ path : " **/*.trx"
99
+
100
+ report :
101
+ concurrency : ci-${{ github.ref }}
102
+ needs : [build-windows-full, build-windows-core, build-linux, build-macos]
103
+ runs-on : ubuntu-latest
104
+ if : always()
32
105
steps :
33
- - uses : actions/checkout@v3
34
- - name : Run
35
- run : ./build.sh
106
+ - uses : actions/checkout@v3
107
+ - name : Download Artifacts
108
+ uses : actions/download-artifact@v3
109
+ - name : Display structure of downloaded files
110
+ run : ls -R
111
+ - name : Report tests results
112
+ uses : dorny/test-reporter@v1
113
+ if : always()
114
+ with :
115
+ name : test-results
116
+ path : " **/*.trx"
117
+ reporter : dotnet-trx
118
+ fail-on-error : true
0 commit comments