mirror of
https://github.com/boostorg/stacktrace.git
synced 2026-01-26 19:12:09 +00:00
More tests and docs on CMake installation (#213)
This commit is contained in:
31
.github/workflows/ci.yml
vendored
31
.github/workflows/ci.yml
vendored
@@ -266,10 +266,21 @@ jobs:
|
||||
- name: Use the installed library
|
||||
run: |
|
||||
cd ../boost-root/libs/$LIBRARY/test/cmake_install_test && mkdir __build__ && cd __build__
|
||||
cmake -DCMAKE_INSTALL_PREFIX=~/.local ..
|
||||
cmake --build .
|
||||
|
||||
export LD_LIBRARY_PATH=$HOME/.local/lib:$LD_LIBRARY_PATH
|
||||
ctest --output-on-failure --no-tests=error
|
||||
|
||||
set -e
|
||||
if [[ "$OSTYPE" == "darwin"* ]]; then
|
||||
BACKENDS_ARRAY=(stacktrace stacktrace_noop stacktrace_basic)
|
||||
else
|
||||
BACKENDS_ARRAY=(stacktrace stacktrace_noop stacktrace_basic stacktrace_backtrace)
|
||||
fi
|
||||
for BACKEND in ${BACKENDS_ARRAY[@]}; do
|
||||
rm -rf *
|
||||
cmake -DCMAKE_INSTALL_PREFIX=~/.local -DBOOST_STACKTRACE_IMPL_BACKEND=${BACKEND} ..
|
||||
cmake --build .
|
||||
ctest --output-on-failure --no-tests=error -V
|
||||
done
|
||||
|
||||
posix-cmake-test:
|
||||
strategy:
|
||||
@@ -426,10 +437,20 @@ jobs:
|
||||
shell: cmd
|
||||
run: |
|
||||
cd ../boost-root/libs/%LIBRARY%/test/cmake_install_test && mkdir __build__ && cd __build__
|
||||
cmake -DCMAKE_INSTALL_PREFIX=C:/cmake-prefix ..
|
||||
cmake -DCMAKE_INSTALL_PREFIX=C:/cmake-prefix -DBOOST_STACKTRACE_IMPL_BACKEND=stacktrace ..
|
||||
cmake --build . --config Debug
|
||||
PATH C:\cmake-prefix\bin;%PATH%
|
||||
ctest --output-on-failure --no-tests=error -C Debug
|
||||
ctest --output-on-failure --no-tests=error -C Debug -V
|
||||
|
||||
cmake -DCMAKE_INSTALL_PREFIX=C:/cmake-prefix -DBOOST_STACKTRACE_IMPL_BACKEND=stacktrace_windbg ..
|
||||
cmake --build . --config Debug
|
||||
PATH C:\cmake-prefix\bin;%PATH%
|
||||
ctest --output-on-failure --no-tests=error -C Debug -V
|
||||
|
||||
cmake -DCMAKE_INSTALL_PREFIX=C:/cmake-prefix -DBOOST_STACKTRACE_IMPL_BACKEND=stacktrace_windbg_cached ..
|
||||
cmake --build . --config Debug
|
||||
PATH C:\cmake-prefix\bin;%PATH%
|
||||
ctest --output-on-failure --no-tests=error -C Debug -V
|
||||
|
||||
- name: Use the installed library (RelWithDebInfo)
|
||||
shell: cmd
|
||||
|
||||
Reference in New Issue
Block a user