Skip to content

Commit 9e858c7

Browse files
Build compiled library on Windows
1 parent 8ee0417 commit 9e858c7

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/test.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,17 @@ jobs:
9898
matrix:
9999
config:
100100
- with_ssl: false
101+
compiled: false
102+
run_tests: true
101103
name: without SSL
102104
- with_ssl: true
105+
compiled: false
106+
run_tests: true
103107
name: with SSL
108+
- with_ssl: false
109+
compiled: true
110+
run_tests: false
111+
name: compiled
104112
name: windows ${{ matrix.config.name }}
105113
steps:
106114
- name: Prepare Git for Checkout on Windows
@@ -128,12 +136,14 @@ jobs:
128136
-DCMAKE_BUILD_TYPE=Release
129137
-DCMAKE_TOOLCHAIN_FILE=${{ env.VCPKG_ROOT }}/scripts/buildsystems/vcpkg.cmake
130138
-DHTTPLIB_TEST=ON
139+
-DHTTPLIB_COMPILE=${{ matrix.config.compiled && 'ON' || 'OFF' }}
131140
-DHTTPLIB_REQUIRE_ZLIB=ON
132141
-DHTTPLIB_REQUIRE_BROTLI=ON
133142
-DHTTPLIB_REQUIRE_OPENSSL=${{ matrix.config.with_ssl && 'ON' || 'OFF' }}
134143
- name: Build ${{ matrix.config.name }}
135144
run: cmake --build build --config Release -- /v:m /clp:ShowCommandLine
136145
- name: Run tests ${{ matrix.config.name }}
146+
if: ${{ matrix.config.run_tests }}
137147
run: ctest --output-on-failure --test-dir build -C Release
138148

139149
env:

0 commit comments

Comments
 (0)