Skip to content

Commit e7ac8d8

Browse files
committed
add "simple" cmake config to fast build
1 parent 2b28deb commit e7ac8d8

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/pr_push.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,23 +21,33 @@ jobs:
2121
- os: windows-latest
2222
disjoint: 'OFF'
2323
build_tests: 'ON'
24+
simple_cmake: 'OFF'
2425
# pure C build (Windows)
2526
- os: windows-latest
2627
disjoint: 'OFF'
2728
# Tests' building is off for a pure C build
2829
build_tests: 'OFF'
30+
simple_cmake: 'OFF'
2931
- os: ubuntu-latest
3032
disjoint: 'ON'
3133
build_tests: 'ON'
3234
# Windows doesn't recognize 'CMAKE_BUILD_TYPE', it uses '--config' param in build command
3335
extra_build_options: '-DCMAKE_BUILD_TYPE=Release -DUMF_BUILD_BENCHMARKS=ON -DUMF_BUILD_BENCHMARKS_MT=ON'
36+
simple_cmake: 'OFF'
3437
# pure C build (Linux)
3538
- os: ubuntu-latest
3639
disjoint: 'OFF'
3740
# Windows doesn't recognize 'CMAKE_BUILD_TYPE', it uses '--config' param in build command
3841
# Tests' building is off for a pure C build
3942
build_tests: 'OFF'
4043
extra_build_options: '-DCMAKE_BUILD_TYPE=Release -DUMF_BUILD_BENCHMARKS=ON'
44+
simple_cmake: 'OFF'
45+
# simplest CMake
46+
- os: ubuntu-latest
47+
disjoint: 'OFF'
48+
build_tests: 'ON'
49+
extra_build_options: '-DCMAKE_BUILD_TYPE=Release'
50+
simple_cmake: 'ON'
4151
runs-on: ${{matrix.os}}
4252

4353
steps:
@@ -68,6 +78,7 @@ jobs:
6878
run: sudo bash -c "echo 0 > /proc/sys/kernel/yama/ptrace_scope"
6979

7080
- name: Configure CMake
81+
if: matrix.simple_cmake == 'OFF'
7182
run: >
7283
cmake
7384
-B ${{github.workspace}}/build
@@ -83,6 +94,16 @@ jobs:
8394
-DUMF_TESTS_FAIL_ON_SKIP=ON
8495
${{matrix.extra_build_options}}
8596
97+
- name: Configure CMake (simple)
98+
if: matrix.simple_cmake == 'ON'
99+
run: >
100+
cmake
101+
-B ${{github.workspace}}/build
102+
-DUMF_BUILD_LIBUMF_POOL_SCALABLE=ON
103+
-DUMF_BUILD_SHARED_LIBRARY=ON
104+
-DUMF_TESTS_FAIL_ON_SKIP=ON
105+
${{matrix.extra_build_options}}
106+
86107
- name: Build
87108
run: cmake --build ${{github.workspace}}/build --config Release -j
88109

0 commit comments

Comments
 (0)