@@ -15,19 +15,36 @@ jobs:
15
15
name : Fast build
16
16
strategy :
17
17
matrix :
18
- os : [ubuntu-latest]
19
- nproc : ['$(nproc)']
20
- pool_scalable : ['ON']
21
- disjoint : ['ON', 'OFF']
22
- jemalloc : ['ON']
23
- # Windows doesn't recognize 'CMAKE_BUILD_TYPE', it uses '--config' param in build command
24
- extra_build_option : ['-DCMAKE_BUILD_TYPE=Release']
25
18
include :
26
19
- os : windows-latest
27
20
nproc : $Env:NUMBER_OF_PROCESSORS
28
21
pool_scalable : ' OFF'
29
22
disjoint : ' OFF'
30
23
jemalloc : ' OFF'
24
+ # pure C build (Windows)
25
+ - os : windows-latest
26
+ nproc : $Env:NUMBER_OF_PROCESSORS
27
+ pool_scalable : ' OFF'
28
+ disjoint : ' OFF'
29
+ jemalloc : ' OFF'
30
+ # Tests' building is off for a pure C build
31
+ extra_build_options : ' -DUMF_BUILD_TESTS=OFF'
32
+ - os : ubuntu-latest
33
+ nproc : ' $(nproc)'
34
+ pool_scalable : ' ON'
35
+ disjoint : ' ON'
36
+ jemalloc : ' ON'
37
+ # Windows doesn't recognize 'CMAKE_BUILD_TYPE', it uses '--config' param in build command
38
+ extra_build_options : ' -DCMAKE_BUILD_TYPE=Release -DUMF_BUILD_BENCHMARKS=ON -DUMF_BUILD_BENCHMARKS_MT=ON'
39
+ # pure C build (Linux)
40
+ - os : ubuntu-latest
41
+ nproc : ' $(nproc)'
42
+ pool_scalable : ' ON'
43
+ disjoint : ' OFF'
44
+ jemalloc : ' ON'
45
+ # Windows doesn't recognize 'CMAKE_BUILD_TYPE', it uses '--config' param in build command
46
+ # Tests' building is off for a pure C build
47
+ extra_build_options : ' -DCMAKE_BUILD_TYPE=Release -DUMF_BUILD_BENCHMARKS=ON -DUMF_BUILD_TESTS=OFF'
31
48
runs-on : ${{matrix.os}}
32
49
33
50
steps :
@@ -44,15 +61,15 @@ jobs:
44
61
run : >
45
62
cmake
46
63
-B ${{github.workspace}}/build
47
- ${{matrix.extra_build_option}}
48
64
-DUMF_FORMAT_CODE_STYLE=OFF
49
65
-DUMF_DEVELOPER_MODE=ON
50
66
-DUMF_ENABLE_POOL_TRACKING=ON
51
67
-DUMF_BUILD_LIBUMF_POOL_SCALABLE=${{matrix.pool_scalable}}
52
68
-DUMF_BUILD_LIBUMF_POOL_DISJOINT=${{matrix.disjoint}}
53
69
-DUMF_BUILD_LIBUMF_POOL_JEMALLOC=${{matrix.jemalloc}}
54
- -DUMF_BUILD_TESTS=OFF
70
+ -DUMF_BUILD_TESTS=ON
55
71
-DUMF_BUILD_EXAMPLES=ON
72
+ ${{matrix.extra_build_options}}
56
73
57
74
- name : Build
58
75
run : cmake --build ${{github.workspace}}/build --config Release -j ${{matrix.nproc}}
0 commit comments