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 44
44
${{ matrix.package }}/test/*
45
45
fail-under-line : 100
46
46
47
+ debug-msvc :
48
+ runs-on : windows-latest
49
+ strategy :
50
+ matrix :
51
+ package : [error]
52
+ steps :
53
+ - name : Checkout repository
54
+ uses : actions/checkout@v3.5.3
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
+
47
70
release :
48
71
runs-on : ubuntu-latest
49
72
strategy :
Original file line number Diff line number Diff line change @@ -26,7 +26,9 @@ if(CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR)
26
26
cpmaddpackage ("gh:catchorg/Catch2@3.3.2" )
27
27
include ("${Catch2_SOURCE_DIR} /extras/Catch.cmake" )
28
28
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 ()
30
32
31
33
add_executable (error_test test /error_test.cpp )
32
34
target_link_libraries (error_test PRIVATE error Catch2::Catch2WithMain )
You can’t perform that action at this time.
0 commit comments