Skip to content

Commit 7cd1ae8

Browse files
authored
chore(workflow): upgrade Windows image and re-enable tests on Windows (#2336)
* chore(workflow): upgrade Windows image to 2022 * chore(test): re-enable tests on Windows
1 parent c3f9192 commit 7cd1ae8

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

.github/workflows/cmake.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ env:
1717
jobs:
1818
windows:
1919
name: windows/msvc - ${{ matrix.link }}
20-
runs-on: windows-2019
20+
runs-on: windows-2022
2121
strategy:
2222
fail-fast: false
2323
matrix:
@@ -44,18 +44,15 @@ jobs:
4444
- name: Create Build Environment & Configure Cmake
4545
shell: bash
4646
working-directory: ./build
47-
# For unknown reasons, we fail to create file in windows ci environment.
48-
# So examples, drogon_ctl and integration tests can not be built in windows ci.
49-
# We should try to enable them again in the future.
5047
run: |
5148
[[ ${{ matrix.link }} == "SHARED" ]] && shared="ON" || shared="OFF"
5249
cmake .. \
5350
-DCMAKE_BUILD_TYPE=Debug \
5451
-DBUILD_TESTING=on \
5552
-DBUILD_SHARED_LIBS=$shared \
5653
-DCMAKE_TOOLCHAIN_FILE="conan_toolchain.cmake" \
57-
-DBUILD_CTL=OFF \
58-
-DBUILD_EXAMPLES=OFF \
54+
-DBUILD_CTL=ON \
55+
-DBUILD_EXAMPLES=ON \
5956
-DUSE_SPDLOG=ON \
6057
-DCMAKE_INSTALL_PREFIX=../install \
6158
-DCMAKE_POLICY_DEFAULT_CMP0091=NEW \

0 commit comments

Comments
 (0)