Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 17 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
name: GitHub Actions CI

# permit node16 use as a workaround for node20's differing glibc version
env:
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true

on:
pull_request:
push:
Expand All @@ -25,7 +21,7 @@ jobs:
buildtype: "boost"
packages: ""
packages_to_remove: ""
os: "ubuntu-20.04"
os: ubuntu-latest
container: "ubuntu:16.04"
cxx: "g++"
sources: ""
Expand All @@ -37,7 +33,7 @@ jobs:
buildtype: "boost"
packages: "g++-5"
packages_to_remove: ""
os: "ubuntu-20.04"
os: ubuntu-latest
container: "ubuntu:16.04"
cxx: "g++-5"
sources: ""
Expand All @@ -49,7 +45,7 @@ jobs:
buildtype: "boost"
packages: "g++-6"
packages_to_remove: ""
os: "ubuntu-20.04"
os: ubuntu-latest
container: "ubuntu:16.04"
cxx: "g++-6"
sources: ""
Expand All @@ -61,7 +57,7 @@ jobs:
buildtype: "boost"
packages: "g++-7"
packages_to_remove: ""
os: "ubuntu-20.04"
os: ubuntu-latest
container: "ubuntu:16.04"
cxx: "g++-7"
sources: ""
Expand All @@ -73,7 +69,7 @@ jobs:
buildtype: "boost"
packages: "g++-9"
packages_to_remove: ""
os: "ubuntu-20.04"
os: ubuntu-latest
container: "ubuntu:16.04"
cxx: "g++-9"
sources: ""
Expand All @@ -85,7 +81,7 @@ jobs:
buildtype: "boost"
packages: ""
packages_to_remove: ""
os: "ubuntu-20.04"
os: "ubuntu-24.04"
cxx: "clang++"
sources: ""
llvm_os: ""
Expand All @@ -94,9 +90,14 @@ jobs:
cxxstd: "11,14,17,20"

runs-on: ${{ matrix.os }}
container: ${{ matrix.container }}
container:
image: ${{matrix.container}}
volumes:
- /node20217:/node20217:rw,rshared
- ${{ startsWith(matrix.container, 'ubuntu:1') && '/node20217:/__e/node20:ro,rshared' || ' ' }}

steps:

- name: Check if running in container
if: matrix.container != ''
run: echo "GHA_CONTAINER=${{ matrix.container }}" >> $GITHUB_ENV
Expand All @@ -110,8 +111,10 @@ jobs:
sudo wget https://bootstrap.pypa.io/pip/$python_version/get-pip.py
sudo python3 get-pip.py
sudo /usr/local/bin/pip install cmake
# Node 20 doesn't work with Ubuntu 16/18 glibc: https://github.com/actions/checkout/issues/1590
curl -sL https://archives.boost.io/misc/node/node-v20.9.0-linux-x64-glibc-217.tar.xz | tar -xJ --strip-components 1 -C /node20217

- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: linux
shell: bash
Expand Down Expand Up @@ -197,7 +200,7 @@ jobs:
- name: "TOOLSET=clang CXXSTD=11,14,17,20 Job 5"
buildtype: "boost"
packages: ""
os: "macos-12"
os: "macos-13"
cxx: "clang++"
sources: ""
llvm_os: ""
Expand All @@ -209,7 +212,7 @@ jobs:
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set DEVELOPER_DIR
if: matrix.xcode_version != ''
Expand Down
4 changes: 2 additions & 2 deletions include/boost/wave/cpplexer/cpp_lex_token.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ template <typename StringTypeT, typename PositionT>
inline void *
token_data<StringTypeT, PositionT>::operator new(std::size_t size)
{
BOOST_ASSERT(sizeof(token_data<StringTypeT, PositionT>) == size);
BOOST_VERIFY(sizeof(token_data<StringTypeT, PositionT>) == size);
typedef boost::singleton_pool<
token_data_tag, sizeof(token_data<StringTypeT, PositionT>)
> pool_type;
Expand All @@ -175,7 +175,7 @@ template <typename StringTypeT, typename PositionT>
inline void
token_data<StringTypeT, PositionT>::operator delete(void *p, std::size_t size)
{
BOOST_ASSERT(sizeof(token_data<StringTypeT, PositionT>) == size);
BOOST_VERIFY(sizeof(token_data<StringTypeT, PositionT>) == size);
typedef boost::singleton_pool<
token_data_tag, sizeof(token_data<StringTypeT, PositionT>)
> pool_type;
Expand Down
2 changes: 1 addition & 1 deletion include/boost/wave/grammars/cpp_grammar.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -729,7 +729,7 @@ boost::spirit::classic::tree_parse_info<
>
cpp_grammar_gen<LexIteratorT, TokenContainerT>::parse_cpp_grammar (
LexIteratorT const &first, LexIteratorT const &last,
position_type const &act_pos, bool &found_eof,
position_type const &/* act_pos */, bool &found_eof,
token_type &found_directive, token_container_type &found_eoltokens)
{
using namespace boost::spirit::classic;
Expand Down
2 changes: 1 addition & 1 deletion include/boost/wave/util/flex_string.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1407,7 +1407,7 @@ class flex_string : private Storage
#else
template <typename Exception>
static inline void Enforce(bool condition, Exception*, const char* msg)
{ BOOST_ASSERT(condition && msg); }
{ BOOST_VERIFY(condition && msg); }
#endif // defined(BOOST_WAVE_FLEXSTRING_THROW_ON_ENFORCE)

#ifndef NDEBUG
Expand Down
2 changes: 1 addition & 1 deletion samples/real_positions/real_position_token.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include <boost/wave/util/file_position.hpp>
#include <boost/wave/token_ids.hpp>
#include <boost/wave/language_support.hpp>
#include <boost/detail/atomic_count.hpp>
#include <boost/smart_ptr/detail/atomic_count.hpp>
#include <boost/optional.hpp>

///////////////////////////////////////////////////////////////////////////////
Expand Down
Loading