Skip to content

Commit d89a976

Browse files
committed
Build gcc11 builds in container.
1 parent 154d0b1 commit d89a976

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,13 +134,15 @@ jobs:
134134
- toolset: gcc-11
135135
install: g++-11
136136
os: ubuntu-latest
137+
container: ubuntu:22.04
137138
cxxstd: '17'
138139
build-type: 'Debug'
139140
ldflags: ''
140141

141142
- toolset: gcc-11
142143
install: g++-11
143-
os: ubuntu-22.04
144+
os: ubuntu-latest
145+
container: ubuntu:22.04
144146
cxxstd: '20'
145147
build-type: 'Release'
146148
ldflags: ''
@@ -177,7 +179,7 @@ jobs:
177179
build-type: 'Release'
178180
ldflags: ''
179181

180-
- toolset: clang-14,
182+
- toolset: clang-14
181183
install: 'clang-14 libc++-14-dev libc++abi-14-dev'
182184
os: ubuntu-latest
183185
container: ubuntu:22.04
@@ -283,6 +285,8 @@ jobs:
283285
- toolset: gcc-11
284286
install: g++-11
285287
cxxstd: "11,17,20" # Having C++11 shouldn't break the build
288+
os: ubuntu-latest
289+
container: ubuntu:22.04
286290
- toolset: clang-14
287291
install: clang-14
288292
os: ubuntu-latest

test/test_conn_echo_stress.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,14 +91,14 @@ auto async_echo_stress(std::shared_ptr<connection> conn) -> net::awaitable<void>
9191

9292
// Number of coroutines that will send pings sharing the same
9393
// connection to redis.
94-
int const sessions = 1000;
94+
int const sessions = 500;
9595

9696
// The number of pings that will be sent by each session.
97-
int const msgs = 500;
97+
int const msgs = 250;
9898

9999
// The number of publishes that will be sent by each session with
100100
// each message.
101-
int const n_pubs = 100;
101+
int const n_pubs = 50;
102102

103103
// This is the total number of pushes we will receive.
104104
int total_pushes = sessions * msgs * n_pubs + 1;

test/test_conn_push.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ BOOST_AUTO_TEST_CASE(many_subscribers)
319319

320320
conn->async_exec(req0, ignore, c0);
321321

322-
run(conn, {}, {});
322+
run(conn, make_test_config(), {});
323323

324324
net::co_spawn(ioc.get_executor(), push_consumer3(conn), net::detached);
325325
ioc.run();

0 commit comments

Comments
 (0)