Skip to content

Commit ca76415

Browse files
committed
Set CMAKE_BUILD_TYPE in posix-cmake-test
1 parent 4352901 commit ca76415

File tree

1 file changed

+23
-7
lines changed

1 file changed

+23
-7
lines changed

.github/workflows/ci.yml

Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -306,20 +306,36 @@ jobs:
306306
git submodule update --init tools/boostdep
307307
python tools/boostdep/depinst/depinst.py --git_args "--jobs 3" $LIBRARY
308308
309-
- name: Configure
309+
- name: Configure (Debug)
310310
run: |
311311
cd ../boost-root
312-
mkdir __build__ && cd __build__
313-
cmake -DBOOST_INCLUDE_LIBRARIES=$LIBRARY -DBUILD_TESTING=ON -DBUILD_SHARED_LIBS=${{matrix.shared}} ..
312+
mkdir __build_debug__ && cd __build_debug__
313+
cmake -DBOOST_INCLUDE_LIBRARIES=$LIBRARY -DBUILD_TESTING=ON -DBUILD_SHARED_LIBS=${{matrix.shared}} -DCMAKE_BUILD_TYPE=Debug ..
314314
315-
- name: Build tests
315+
- name: Build tests (Debug)
316316
run: |
317-
cd ../boost-root/__build__
317+
cd ../boost-root/__build_debug__
318318
cmake --build . --target tests
319319
320-
- name: Run tests
320+
- name: Run tests (Debug)
321321
run: |
322-
cd ../boost-root/__build__
322+
cd ../boost-root/__build_debug__
323+
ctest --output-on-failure --no-tests=error
324+
325+
- name: Configure (RelWithDebInfo)
326+
run: |
327+
cd ../boost-root
328+
mkdir __build_relwithdebinfo__ && cd __build_relwithdebinfo__
329+
cmake -DBOOST_INCLUDE_LIBRARIES=$LIBRARY -DBUILD_TESTING=ON -DBUILD_SHARED_LIBS=${{matrix.shared}} -DCMAKE_BUILD_TYPE=RelWithDebInfo ..
330+
331+
- name: Build tests (RelWithDebInfo)
332+
run: |
333+
cd ../boost-root/__build_relwithdebinfo__
334+
cmake --build . --target tests
335+
336+
- name: Run tests (RelWithDebInfo)
337+
run: |
338+
cd ../boost-root/__build_relwithdebinfo__
323339
ctest --output-on-failure --no-tests=error
324340
325341
windows-cmake-subdir:

0 commit comments

Comments
 (0)