mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2025-05-14 16:58:30 +00:00
Wrap poll()/WSAPoll() in a function and build compiled library on Windows (#2107)
* Wrap poll()/WSAPoll() in a function Instead of using a macro for poll() on Windows, which breaks when the implementation is compiled separately, add a detail::poll_wrapper() function that dispatches to either ::poll() or ::WSAPoll(). * Build compiled library on Windows
This commit is contained in:
parent
a9ba0a4dff
commit
2f39723d08
2 changed files with 22 additions and 7 deletions
10
.github/workflows/test.yaml
vendored
10
.github/workflows/test.yaml
vendored
|
@ -98,9 +98,17 @@ jobs:
|
|||
matrix:
|
||||
config:
|
||||
- with_ssl: false
|
||||
compiled: false
|
||||
run_tests: true
|
||||
name: without SSL
|
||||
- with_ssl: true
|
||||
compiled: false
|
||||
run_tests: true
|
||||
name: with SSL
|
||||
- with_ssl: false
|
||||
compiled: true
|
||||
run_tests: false
|
||||
name: compiled
|
||||
name: windows ${{ matrix.config.name }}
|
||||
steps:
|
||||
- name: Prepare Git for Checkout on Windows
|
||||
|
@ -128,12 +136,14 @@ jobs:
|
|||
-DCMAKE_BUILD_TYPE=Release
|
||||
-DCMAKE_TOOLCHAIN_FILE=${{ env.VCPKG_ROOT }}/scripts/buildsystems/vcpkg.cmake
|
||||
-DHTTPLIB_TEST=ON
|
||||
-DHTTPLIB_COMPILE=${{ matrix.config.compiled && 'ON' || 'OFF' }}
|
||||
-DHTTPLIB_REQUIRE_ZLIB=ON
|
||||
-DHTTPLIB_REQUIRE_BROTLI=ON
|
||||
-DHTTPLIB_REQUIRE_OPENSSL=${{ matrix.config.with_ssl && 'ON' || 'OFF' }}
|
||||
- name: Build ${{ matrix.config.name }}
|
||||
run: cmake --build build --config Release -- /v:m /clp:ShowCommandLine
|
||||
- name: Run tests ${{ matrix.config.name }}
|
||||
if: ${{ matrix.config.run_tests }}
|
||||
run: ctest --output-on-failure --test-dir build -C Release
|
||||
|
||||
env:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue