File tree Expand file tree Collapse file tree 2 files changed +26
-1
lines changed
Expand file tree Collapse file tree 2 files changed +26
-1
lines changed Original file line number Diff line number Diff line change 4444 ${{ matrix.package }}/test/*
4545 fail-under-line : 100
4646
47+ debug-msvc :
48+ runs-on : windows-latest
49+ strategy :
50+ matrix :
51+ package : [error]
52+ steps :
53+ - name : Checkout repository
54+ 55+
56+ - name : Configure CMake
57+ run : |
58+ cmake ${{ matrix.package }} \
59+ -B ${{ matrix.package }}/build \
60+ -D CMAKE_CXX_COMPILER=cl \
61+ -D CMAKE_CXX_FLAGS=/WX \
62+ -D BUILD_TESTING=ON
63+
64+ - name : Build project
65+ run : cmake --build ${{ matrix.package }}/build
66+
67+ - name : Run unit tests
68+ run : ctest --test-dir ${{ matrix.package }}/build --output-on-failure --no-tests=error
69+
4770 release :
4871 runs-on : ubuntu-latest
4972 strategy :
Original file line number Diff line number Diff line change @@ -26,7 +26,9 @@ if(CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR)
2626 cpmaddpackage(
"gh:catchorg/[email protected] " )
2727 include ("${Catch2_SOURCE_DIR} /extras/Catch.cmake" )
2828
29- set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fprofile-arcs -ftest-coverage -fPIC -O0" )
29+ if (NOT MSVC )
30+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fprofile-arcs -ftest-coverage -fPIC -O0" )
31+ endif ()
3032
3133 add_executable (error_test test /error_test.cpp)
3234 target_link_libraries (error_test PRIVATE error Catch2::Catch2WithMain)
You can’t perform that action at this time.
0 commit comments