File tree Expand file tree Collapse file tree 1 file changed +33
-4
lines changed Expand file tree Collapse file tree 1 file changed +33
-4
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,10 @@ name: Build and run tests
2
2
3
3
on : [push, pull_request]
4
4
5
+ env :
6
+ CMAKE_COLOR_DIAGNOSTICS : ON
7
+ OMP_NUM_THREADS : 1
8
+
5
9
jobs :
6
10
build :
7
11
name : ${{ matrix.config.name }}
@@ -12,21 +16,45 @@ jobs:
12
16
matrix :
13
17
config :
14
18
- {
15
- name : " Windows" ,
19
+ name : " Windows static" ,
20
+ os : windows-latest,
21
+ build_type : " Release" ,
22
+ shared_libs : false,
23
+ generators : " Visual Studio 17 2022"
24
+ }
25
+ - {
26
+ name : " Ubuntu Linux static" ,
27
+ os : ubuntu-latest,
28
+ build_type : " Release" ,
29
+ shared_libs : false,
30
+ generators : " Ninja"
31
+ }
32
+ - {
33
+ name : " macOS static" ,
34
+ os : macos-latest,
35
+ build_type : " Release" ,
36
+ shared_libs : false,
37
+ generators : " Ninja"
38
+ }
39
+ - {
40
+ name : " Windows shared" ,
16
41
os : windows-latest,
17
42
build_type : " Release" ,
43
+ shared_libs : true,
18
44
generators : " Visual Studio 17 2022"
19
45
}
20
46
- {
21
- name : " Ubuntu Linux" ,
47
+ name : " Ubuntu Linux shared " ,
22
48
os : ubuntu-latest,
23
49
build_type : " Release" ,
50
+ shared_libs : true,
24
51
generators : " Ninja"
25
52
}
26
53
- {
27
- name : " macOS" ,
54
+ name : " macOS shared " ,
28
55
os : macos-latest,
29
56
build_type : " Release" ,
57
+ shared_libs : true,
30
58
generators : " Ninja"
31
59
}
32
60
56
84
cmake \
57
85
-S . \
58
86
-B build \
87
+ -DBUILD_SHARED_LIBS=${{ matrix.config.shared_libs }} \
59
88
-DCMAKE_BUILD_TYPE=${{ matrix.config.build_type }} \
60
89
-G "${{ matrix.config.generators }}" \
61
90
-DCMAKE_INSTALL_PREFIX:PATH=instdir
76
105
uses : actions/upload-artifact@v4
77
106
if : always()
78
107
with :
79
- name : unit-test-results-${{ matrix.config.os }}
108
+ name : unit-test-results-${{ matrix.config.os }}-${{ matrix.config.shared_libs }}
80
109
path : build/report.xml
81
110
82
111
- name : Install and strip
You can’t perform that action at this time.
0 commit comments