Skip to content

Commit

Permalink
Add support for g++-13,14
Browse files Browse the repository at this point in the history
Summary:
related to T13767, #9

fix compilation error on g++-14
add g++-13 & g++-14 workflow to CI (requires ubuntu 24.04)

Reviewers: ivica

Reviewed By: ivica

Subscribers: miljen, iljazovic

Differential Revision: https://repo.mireo.local/D29794
  • Loading branch information
ksimicevic committed Jun 3, 2024
1 parent 927c1c6 commit d52090f
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 8 deletions.
24 changes: 22 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ env:

jobs:
windows:
name: "${{ matrix.toolset }} std=c++${{ matrix.cxxstd }} ${{ matrix.build-type }}"
name: "${{ matrix.toolset }} std=c++${{ matrix.cxxstd }}"
defaults:
run:
shell: cmd
Expand Down Expand Up @@ -114,7 +114,7 @@ jobs:
.\\test\\build\\${{ matrix.build-type }}\\mqtt-test.exe
posix:
name: "${{ matrix.toolset }} std=c++${{ matrix.cxxstd }} ${{ matrix.build-type }}"
name: "${{ matrix.toolset }} std=c++${{ matrix.cxxstd }} ${{ matrix.container }}"

defaults:
run:
Expand Down Expand Up @@ -150,6 +150,26 @@ jobs:
os: ubuntu-latest
container: ubuntu:22.04
build-type: 'Release'
cxxstd: 17
cxxflags: ''
ldflags: ''

- toolset: g++-13
compiler: g++-13
install: g++-13
os: ubuntu-24.04
container: ubuntu:24.04
build-type: 'Release'
cxxstd: 17
cxxflags: ''
ldflags: ''

- toolset: g++-14
compiler: g++-14
install: g++-14
os: ubuntu-24.04
container: ubuntu:24.04
build-type: 'Release'
cxxstd: 20
cxxflags: ''
ldflags: ''
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ env:

jobs:
posix:
name: "coverage ${{ matrix.compiler }} -std=c++${{ matrix.cxxstd }}"
name: "coverage ${{ matrix.compiler }} -std=c++${{ matrix.cxxstd }} ${{ matrix.container }}"
defaults:
run:
shell: bash
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@ Async.MQTT5 is a header-only library. To use Async.MQTT5 it requires the followi
- **OpenSSL**. Only if you require an SSL connection by using [boost::asio::ssl::stream](https://www.boost.org/doc/libs/1_82_0/doc/html/boost_asio/reference/ssl__stream.html).

Async.MQTT5 has been tested with the following compilers:
- clang 12.0, 13.0, 14.0, 15.0 (Linux)
- GCC 9, 10, 11, 12 (Linux)
- clang 12.0 - 15.0 (Linux)
- GCC 9 - 14 (Linux)
- MSVC 14.37 - Visual Studio 2022 (Windows)

Contributing
Expand Down
4 changes: 2 additions & 2 deletions doc/qbk/01_intro.qbk
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ To use __Self__ it requires the following:

__Self__ has been tested with the following compilers:

* clang 12.0, 13.0, 14.0, 15.0 (Linux)
* GCC 9, 10, 11, 12 (Linux)
* clang 12.0 - 15.0 (Linux)
* GCC 9 - 14 (Linux)
* MSVC 14.37 - Visual Studio 2022 (Windows)

[heading Acknowledgements]
Expand Down
1 change: 1 addition & 0 deletions include/async_mqtt5/detail/control_packet.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#ifndef ASYNC_MQTT5_CONTROL_PACKET_HPP
#define ASYNC_MQTT5_CONTROL_PACKET_HPP

#include <algorithm>
#include <vector>

#include <boost/smart_ptr/allocate_unique.hpp>
Expand Down
1 change: 1 addition & 0 deletions include/async_mqtt5/impl/re_auth_op.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#include <boost/asio/detached.hpp>

#include <async_mqtt5/error.hpp>
#include <async_mqtt5/reason_codes.hpp>

#include <async_mqtt5/detail/control_packet.hpp>
#include <async_mqtt5/detail/any_authenticator.hpp>
Expand Down
3 changes: 2 additions & 1 deletion test/include/test_common/packet_util.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@
#ifndef ASYNC_MQTT5_TEST_PACKET_UTIL_HPP
#define ASYNC_MQTT5_TEST_PACKET_UTIL_HPP

#include <string>
#include <bitset>
#include <sstream>
#include <string>

#include <boost/algorithm/string/join.hpp>

Expand Down

0 comments on commit d52090f

Please sign in to comment.