Skip to content

Commit ba4ce2f

Browse files
committed
chore: fix CI
1 parent f151dad commit ba4ce2f

File tree

3 files changed

+35
-26
lines changed

3 files changed

+35
-26
lines changed

.drone.star

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,21 @@
1313
def main(ctx):
1414
return generate(
1515
# Compilers
16-
['gcc >=5.0',
17-
'clang >=3.8',
18-
'msvc >=14.1',
19-
'arm64-gcc latest',
20-
's390x-gcc latest',
21-
'apple-clang *',
22-
'arm64-clang latest',
23-
's390x-clang latest',
24-
# 'x86-msvc latest'
25-
],
16+
[
17+
'gcc >=5.0',
18+
'clang >=3.8',
19+
'msvc >=14.1',
20+
'arm64-gcc latest',
21+
's390x-gcc latest',
22+
# 'freebsd-gcc latest',
23+
'apple-clang *',
24+
'arm64-clang latest',
25+
's390x-clang latest',
26+
# 'x86-msvc latest'
27+
],
2628
# Standards
2729
'>=11',
2830
packages=['zlib1g', 'zlib1g-dev'])
2931

30-
31-
# from https://github.com/boostorg/boost-ci
32-
load("@boost_ci//ci/drone/:functions.star", "linux_cxx", "windows_cxx", "osx_cxx", "freebsd_cxx")
33-
load("@url//:.drone.star", "generate")
32+
# from https://github.com/cppalliance/ci-automation
33+
load("@ci_automation//ci/drone/:functions.star", "linux_cxx", "windows_cxx", "osx_cxx", "freebsd_cxx", "generate")

.github/workflows/ci.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1121,7 +1121,7 @@ jobs:
11211121
fail-fast: false
11221122
matrix:
11231123
include:
1124-
# - { name: Windows, os: windows-latest }
1124+
- { name: Windows, os: windows-latest }
11251125
- { name: Ubuntu, os: ubuntu-latest }
11261126
- { name: MacOS, os: macos-latest }
11271127
name: Antora Docs (${{ matrix.name }})
@@ -1153,8 +1153,14 @@ jobs:
11531153
with:
11541154
branch: ${{ (github.ref_name == 'master' && github.ref_name) || 'develop' }}
11551155
boost-dir: boost-source
1156-
scan-modules-dir: http-proto-root
1157-
scan-modules-ignore: http_proto
1156+
cache: false
1157+
modules-exclude-paths: ''
1158+
scan-modules-dir: |
1159+
http-proto-root
1160+
buffers-root
1161+
scan-modules-ignore: |
1162+
http_proto
1163+
buffers
11581164
11591165
- name: Patch Boost
11601166
id: patch
@@ -1189,9 +1195,6 @@ jobs:
11891195
cp -r "$workspace_root"/http-proto-root "libs/$module"
11901196
cp -r "$workspace_root"/buffers-root libs/buffers
11911197
1192-
python3 tools/boostdep/depinst/depinst.py buffers
1193-
python3 tools/boostdep/depinst/depinst.py http_proto
1194-
11951198
- uses: actions/setup-node@v4
11961199
with:
11971200
node-version: 18
@@ -1223,4 +1226,4 @@ jobs:
12231226
uses: actions/upload-artifact@v4
12241227
with:
12251228
name: antora-docs-${{ matrix.name }}
1226-
path: doc/build/site
1229+
path: boost-root/libs/http_proto/doc/build/site

CMakeLists.txt

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -133,24 +133,30 @@ endif ()
133133
#
134134
#-------------------------------------------------
135135
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
136+
136137
file(GLOB_RECURSE BOOST_HTTP_PROTO_HEADERS CONFIGURE_DEPENDS include/boost/*.hpp include/boost/*.natvis)
137138
file(GLOB_RECURSE BOOST_HTTP_PROTO_SOURCES CONFIGURE_DEPENDS src/*.cpp src/*.hpp)
139+
file(GLOB_RECURSE BOOST_HTTP_PROTO_ZLIB_SOURCES CONFIGURE_DEPENDS src_zlib/*.cpp src_zlib/*.hpp)
140+
138141
source_group(TREE ${CMAKE_CURRENT_SOURCE_DIR}/include/boost PREFIX "" FILES ${BOOST_HTTP_PROTO_HEADERS})
139142
source_group(TREE ${CMAKE_CURRENT_SOURCE_DIR}/src PREFIX "http_proto" FILES ${BOOST_HTTP_PROTO_SOURCES})
143+
source_group(TREE ${CMAKE_CURRENT_SOURCE_DIR}/src_zlib PREFIX "http_proto" FILES ${BOOST_HTTP_PROTO_ZLIB_SOURCES})
144+
140145
add_library(boost_http_proto ${BOOST_HTTP_PROTO_HEADERS} ${BOOST_HTTP_PROTO_SOURCES})
141146
add_library(Boost::http_proto ALIAS boost_http_proto)
142147
target_compile_features(boost_http_proto PUBLIC cxx_constexpr)
143-
target_compile_definitions(boost_http_proto PUBLIC BOOST_HTTP_PROTO_NO_LIB=1)
144148
target_include_directories(boost_http_proto PUBLIC "${PROJECT_SOURCE_DIR}/include")
145149
target_link_libraries(boost_http_proto PUBLIC ${BOOST_HTTP_PROTO_DEPENDENCIES})
146-
target_compile_definitions(boost_http_proto PUBLIC $<IF:$<BOOL:${BUILD_SHARED_LIBS}>,BOOST_HTTP_PROTO_DYN_LINK=1,BOOST_HTTP_PROTO_STATIC_LINK=1>)
150+
target_compile_definitions(boost_http_proto PUBLIC BOOST_HTTP_PROTO_NO_LIB)
147151
target_compile_definitions(boost_http_proto PRIVATE BOOST_HTTP_PROTO_SOURCE)
152+
if (BUILD_SHARED_LIBS)
153+
target_compile_definitions(boost_http_proto PUBLIC BOOST_HTTP_PROTO_DYN_LINK)
154+
else ()
155+
target_compile_definitions(boost_http_proto PUBLIC BOOST_HTTP_PROTO_STATIC_LINK)
156+
endif ()
148157

149158
find_package(ZLIB)
150-
151159
if (ZLIB_FOUND)
152-
file(GLOB_RECURSE BOOST_HTTP_PROTO_ZLIB_SOURCES CONFIGURE_DEPENDS src_zlib/*.cpp src_zlib/*.hpp)
153-
source_group(TREE ${CMAKE_CURRENT_SOURCE_DIR}/src_zlib PREFIX "http_proto" FILES ${BOOST_HTTP_PROTO_ZLIB_SOURCES})
154160
add_library(boost_http_proto_zlib ${BOOST_HTTP_PROTO_HEADERS} ${BOOST_HTTP_PROTO_ZLIB_SOURCES})
155161
add_library(Boost::http_proto_zlib ALIAS boost_http_proto_zlib)
156162
target_link_libraries(boost_http_proto_zlib PUBLIC boost_http_proto)

0 commit comments

Comments
 (0)