Skip to content

Commit 2951acc

Browse files
committed
Merge branch 'feature/118-boost-integration' of github.com:anarthal/boost-redis into feature/118-boost-integration
2 parents 686cb30 + faf15fe commit 2951acc

File tree

5 files changed

+44
-32
lines changed

5 files changed

+44
-32
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ jobs:
101101
run: choco install --no-progress -y openssl
102102

103103
- name: Setup user-config.jam
104-
run: cp tools/user-config.jam "$USERPROFILE/"
104+
run: cp tools/user-config.jam "${HOMEDRIVE}${HOMEPATH}/"
105105

106106
- name: Setup Boost
107107
run: python3 tools/ci.py setup-boost --source-dir=$(pwd)

.github/workflows/coverage.yml

Lines changed: 25 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
name: Coverage
22

3-
on:
4-
push:
5-
branches:
6-
- develop
3+
on: push
4+
# push:
5+
# branches:
6+
# - develop
7+
78
jobs:
89
posix:
910
defaults:
@@ -18,30 +19,32 @@ jobs:
1819
steps:
1920
- name: Checkout
2021
uses: actions/checkout@v3
21-
- name: Install CMake
22-
run: sudo apt-get -y install cmake
23-
- name: Install lcov
24-
run: sudo apt-get -y install lcov
25-
- name: Install compiler
26-
run: sudo apt-get -y install g++-11
27-
- name: Install Redis
28-
run: sudo apt-get -y install redis-server
29-
- name: Install boost
30-
uses: MarkusJx/[email protected]
31-
id: install-boost
32-
with:
33-
boost_version: 1.81.0
34-
platform_version: 22.04
22+
23+
- name: Install dependencies
24+
run: sudo apt-get --no-install-recommends -y install cmake lcov g++-11 redis-server
25+
26+
- name: Setup Boost
27+
run: ./tools/ci.py setup-boost --source-dir=$(pwd)
28+
29+
- name: Build Boost
30+
run: ./tools/ci.py build-b2-distro --toolset=gcc-11
31+
32+
# Having our library there confuses the coverage reports
33+
- name: Remove Boost.Redis from the b2 distro
34+
run: rm -rf ~/boost-b2-distro/include/boost/redis
35+
3536
- name: Run CMake
36-
run: |
37-
BOOST_ROOT=${{steps.install-boost.outputs.BOOST_ROOT}} cmake --preset coverage .
37+
run: cmake -DCMAKE_PREFIX_PATH=$HOME/boost-b2-distro --preset coverage .
38+
3839
- name: Build
3940
run: cmake --build --preset coverage
41+
4042
- name: Test
4143
run: ctest --preset coverage
44+
4245
- name: Make the coverage file
4346
run: cmake --build --preset coverage --target coverage
47+
4448
- name: Upload to codecov
4549
run: |
46-
bash <(curl -s https://codecov.io/bash) -f ./build/coverage/coverage.info || echo "Codecov did not collect coverage reports"
47-
50+
bash <(curl -s https://codecov.io/bash) -f ./build/coverage/coverage.info

test/Jamfile

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,19 @@ local requirements =
1414
<toolset>msvc:<cxxflags>"/bigobj"
1515
<target-os>windows:<define>_WIN32_WINNT=0x0601
1616
<include>../include
17-
[ requires cxx17 ]
17+
[ requires
18+
cxx14_constexpr
19+
cxx14_generic_lambdas
20+
cxx14_initialized_lambda_captures
21+
cxx14_aggregate_nsdmi
22+
cxx14_return_type_deduction
23+
cxx17_hdr_charconv
24+
cxx17_hdr_optional
25+
cxx17_hdr_string_view
26+
cxx17_hdr_variant
27+
cxx17_std_apply
28+
cxx17_structured_bindings
29+
]
1830
[ ac.check-library /openssl//ssl : <library>/openssl//ssl/<link>shared : <build>no ]
1931
[ ac.check-library /openssl//crypto : <library>/openssl//crypto/<link>shared : <build>no ]
2032
<library>/openssl//ssl/<link>shared

test/common.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
#include <boost/asio/consign.hpp>
44
#include <boost/asio/co_spawn.hpp>
55

6-
#include <boost/test/unit_test.hpp>
76

87
namespace net = boost::asio;
98

@@ -15,7 +14,6 @@ struct run_callback {
1514
void operator()(boost::system::error_code const& ec) const
1615
{
1716
std::cout << "async_run: " << ec.message() << std::endl;
18-
//BOOST_CHECK_EQUAL(ec, expected);
1917
conn->cancel(op);
2018
}
2119
};

tools/user-config.jam

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,9 @@ import os ;
44

55
local OPENSSL_ROOT = [ os.environ OPENSSL_ROOT ] ;
66

7-
project
8-
: requirements
7+
using openssl : :
98
<include>$(OPENSSL_ROOT)/include
10-
<variant>debug:<library-path>$(OPENSSL_ROOT)/lib
11-
<target-os>windows<variant>debug:<library-path>$(OPENSSL_ROOT)/debug/lib
12-
<variant>release:<library-path>$(OPENSSL_ROOT)/lib
13-
;
9+
<search>$(OPENSSL_ROOT)/lib
10+
<ssl-name>libssl
11+
<crypto-name>libcrypto
12+
;

0 commit comments

Comments
 (0)