Skip to content

Commit 3958fdd

Browse files
[CI] Enable building tests and benchmarks in FastBuild job
Fixes: #169
1 parent 3032c20 commit 3958fdd

File tree

1 file changed

+26
-9
lines changed

1 file changed

+26
-9
lines changed

.github/workflows/pr_push.yml

Lines changed: 26 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,36 @@ jobs:
1515
name: Fast build
1616
strategy:
1717
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']
2518
include:
2619
- os: windows-latest
2720
nproc: $Env:NUMBER_OF_PROCESSORS
2821
pool_scalable: 'OFF'
2922
disjoint: 'OFF'
3023
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'
3148
runs-on: ${{matrix.os}}
3249

3350
steps:
@@ -44,15 +61,15 @@ jobs:
4461
run: >
4562
cmake
4663
-B ${{github.workspace}}/build
47-
${{matrix.extra_build_option}}
4864
-DUMF_FORMAT_CODE_STYLE=OFF
4965
-DUMF_DEVELOPER_MODE=ON
5066
-DUMF_ENABLE_POOL_TRACKING=ON
5167
-DUMF_BUILD_LIBUMF_POOL_SCALABLE=${{matrix.pool_scalable}}
5268
-DUMF_BUILD_LIBUMF_POOL_DISJOINT=${{matrix.disjoint}}
5369
-DUMF_BUILD_LIBUMF_POOL_JEMALLOC=${{matrix.jemalloc}}
54-
-DUMF_BUILD_TESTS=OFF
70+
-DUMF_BUILD_TESTS=ON
5571
-DUMF_BUILD_EXAMPLES=ON
72+
${{matrix.extra_build_options}}
5673
5774
- name: Build
5875
run: cmake --build ${{github.workspace}}/build --config Release -j ${{matrix.nproc}}

0 commit comments

Comments
 (0)