Skip to content

Commit 775973e

Browse files
committed
Test asio 1.32 and boost.asio 1.88
1 parent 9f0b6fb commit 775973e

File tree

4 files changed

+27
-13
lines changed

4 files changed

+27
-13
lines changed

.github/workflows/ci-pr-validation.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,11 @@ jobs:
142142
- name: Run unit tests
143143
run: RETRY_FAILED=3 CMAKE_BUILD_DIRECTORY=./build ./run-unit-tests.sh
144144

145+
- name: Build with Boost.Asio
146+
run: |
147+
cmake -B build-boost-asio -DINTEGRATE_VCPKG=ON -DBUILD_TESTS=ON
148+
cmake --build build-boost-asio -j8
149+
145150
- name: Build perf tools
146151
run: |
147152
cmake -B build -DINTEGRATE_VCPKG=ON -DBUILD_TESTS=ON -DBUILD_PERF_TOOLS=ON

CMakeLists.txt

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,19 @@
1919

2020
cmake_minimum_required(VERSION 3.13)
2121

22-
option(USE_ASIO "Use Asio instead of Boost.Asio" OFF)
23-
2422
option(INTEGRATE_VCPKG "Integrate with Vcpkg" OFF)
2523
if (INTEGRATE_VCPKG)
26-
set(USE_ASIO ON)
24+
option(USE_ASIO "Use Asio instead of Boost.Asio" ON)
2725
if (NOT CMAKE_TOOLCHAIN_FILE)
2826
set(CMAKE_TOOLCHAIN_FILE "${CMAKE_SOURCE_DIR}/vcpkg/scripts/buildsystems/vcpkg.cmake")
2927
endif ()
28+
if (NOT USE_ASIO)
29+
list(APPEND VCPKG_MANIFEST_FEATURES "boost-asio")
30+
endif ()
31+
else ()
32+
option(USE_ASIO "Use Asio instead of Boost.Asio" OFF)
3033
endif ()
34+
message(STATUS "USE_ASIO: ${USE_ASIO}")
3135

3236
option(BUILD_TESTS "Build tests" ON)
3337
message(STATUS "BUILD_TESTS: " ${BUILD_TESTS})

vcpkg

Submodule vcpkg updated 3660 files

vcpkg.json

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,19 @@
99
"features": [
1010
"openssl"
1111
],
12-
"version>=": "1.28.2"
12+
"version>=": "1.32.0"
1313
},
1414
{
1515
"name": "boost-accumulators",
16-
"version>=": "1.83.0"
16+
"version>=": "1.88.0"
1717
},
1818
{
1919
"name": "boost-format",
20-
"version>=": "1.83.0"
20+
"version>=": "1.88.0"
2121
},
2222
{
2323
"name": "boost-property-tree",
24-
"version>=": "1.83.0"
24+
"version>=": "1.88.0"
2525
},
2626
{
2727
"name": "curl",
@@ -61,12 +61,21 @@
6161
}
6262
],
6363
"features": {
64+
"boost-asio": {
65+
"description": "Use Boost.Asio instead of standalone Asio",
66+
"dependencies": [
67+
{
68+
"name": "boost-asio",
69+
"version>=": "1.88.0"
70+
}
71+
]
72+
},
6473
"perf": {
6574
"description": "Build Performance Tool",
6675
"dependencies": [
6776
{
6877
"name": "boost-program-options",
69-
"version>=": "1.83.0"
78+
"version>=": "1.88.0"
7079
}
7180
]
7281
},
@@ -81,10 +90,6 @@
8190
}
8291
},
8392
"overrides": [
84-
{
85-
"name": "asio",
86-
"version": "1.28.2"
87-
},
8893
{
8994
"name": "protobuf",
9095
"version": "3.21.12"

0 commit comments

Comments
 (0)