Skip to content
This repository was archived by the owner on Mar 22, 2023. It is now read-only.

Commit eca8f5f

Browse files
Merge pull request #1053 from lukaszstolarczuk/add-extra-win-CI
Add extra Windows CI job
2 parents a365b05 + aab7724 commit eca8f5f

3 files changed

Lines changed: 16 additions & 16 deletions

File tree

.github/workflows/gha.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,12 @@ jobs:
102102
MSBUILD: "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Enterprise\\MSBuild\\Current\\Bin"
103103
strategy:
104104
matrix:
105-
CONFIG: [Debug, Release]
105+
BUILD_TYPE: [Debug, Release]
106+
CXX_STANDARD: [14]
107+
include:
108+
- BUILD_TYPE: RelWithDebInfo
109+
CXX_STANDARD: 17
110+
106111
steps:
107112
- name: Update PATH
108113
run: echo "${env:MSBUILD}" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
@@ -141,19 +146,20 @@ jobs:
141146
run: cmake . -Bbuild
142147
-G "${env:GENERATOR}"
143148
-A "${env:ARCH}"
144-
-DCMAKE_BUILD_TYPE="${{ matrix.CONFIG }}"
149+
-DCMAKE_BUILD_TYPE="${{ matrix.BUILD_TYPE }}"
145150
-DCMAKE_TOOLCHAIN_FILE="${env:CMAKE_TOOLCHAIN_FILE}"
146151
-DCMAKE_INSTALL_PREFIX="${env:CMAKE_INSTALL_PREFIX}"
147152
-DTESTS_USE_FORCED_PMEM=ON
148153
-DTESTS_TBB=ON
149154
-DDEVELOPER_MODE=ON
155+
-DCXX_STANDARD="${{ matrix.CXX_STANDARD }}"
150156

151157
- name: Build
152-
run: msbuild build/ALL_BUILD.vcxproj /property:Configuration=${{ matrix.CONFIG }} /verbosity:minimal /m
158+
run: msbuild build/ALL_BUILD.vcxproj /property:Configuration=${{ matrix.BUILD_TYPE }} /verbosity:minimal /m
153159

154160
- name: Tests
155161
working-directory: build
156-
run: ctest -C ${{ matrix.CONFIG }} --output-on-failure --timeout "${env:TEST_TIMEOUT}"
162+
run: ctest -C ${{ matrix.BUILD_TYPE }} --output-on-failure --timeout "${env:TEST_TIMEOUT}"
157163

158164
- name: Install
159165
working-directory: build

examples/CMakeLists.txt

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,12 @@ if(CURSES_FOUND)
161161
add_example(pman pman/pman.cpp)
162162
target_include_directories(example-pman PUBLIC ${CURSES_INCLUDE_DIR})
163163
target_link_libraries(example-pman ${CURSES_LIBRARIES})
164-
else()
165-
message(WARNING "ncurses not found - pman won't be build")
164+
165+
add_example(panaconda panaconda/panaconda.cpp)
166+
target_include_directories(example-panaconda PUBLIC ${CURSES_INCLUDE_DIR})
167+
target_link_libraries(example-panaconda ${CURSES_LIBRARIES})
168+
elseif(NOT WIN32)
169+
message(WARNING "ncurses not found - pman and panaconda examples won't be build")
166170
endif()
167171

168172
if(SFML_FOUND)
@@ -190,14 +194,6 @@ else()
190194
message(WARNING "SFML 2.4 or newer not found - pmpong won't be build")
191195
endif()
192196

193-
if(CURSES_FOUND)
194-
add_example(panaconda panaconda/panaconda.cpp)
195-
target_include_directories(example-panaconda PUBLIC ${CURSES_INCLUDE_DIR})
196-
target_link_libraries(example-panaconda ${CURSES_LIBRARIES})
197-
else()
198-
message(WARNING "ncurses not found - panaconda won't be build")
199-
endif()
200-
201197
add_example(map_cli map_cli/map_cli.cpp)
202198

203199
add_example(array array/array.cpp)

tests/CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,6 @@ if(BUILD_EXAMPLES AND NO_GCC_VARIADIC_TEMPLATE_BUG)
132132
if(CURSES_FOUND AND NOT WIN32)
133133
build_example_pman()
134134
add_test_generic(NAME ex-pman CASE 0 TRACERS none SCRIPT ex-pman/ex-pman_0.cmake)
135-
elseif(NOT WIN32)
136-
message(WARNING "ncurses not found - pman test won't be build")
137135
endif()
138136
elseif(BUILD_EXAMPLES)
139137
message(WARNING "Skipping examples tests because of gcc variadic template bug")

0 commit comments

Comments
 (0)