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
87 changes: 33 additions & 54 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,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 @@ -33,8 +33,8 @@ jobs:
buildtype: "boost"
packages: "g++-5"
packages_to_remove: ""
os: "ubuntu-20.04"
container: "ubuntu:16.04"
os: "ubuntu-latest"
container: "ubuntu:18.04"
cxx: "g++-5"
sources: ""
llvm_os: ""
Expand All @@ -45,8 +45,8 @@ jobs:
buildtype: "boost"
packages: "g++-6"
packages_to_remove: ""
os: "ubuntu-20.04"
container: "ubuntu:16.04"
os: "ubuntu-latest"
container: "ubuntu:18.04"
cxx: "g++-6"
sources: ""
llvm_os: ""
Expand All @@ -57,8 +57,8 @@ jobs:
buildtype: "boost"
packages: "g++-7"
packages_to_remove: ""
os: "ubuntu-20.04"
container: "ubuntu:16.04"
os: "ubuntu-latest"
container: "ubuntu:18.04"
cxx: "g++-7"
sources: ""
llvm_os: ""
Expand All @@ -67,10 +67,10 @@ jobs:
cxxstd: "11,14,17"
- name: "TOOLSET=clang CXXSTD=11,14,1z Job 4"
buildtype: "boost"
packages: "libstdc++-4.9-dev clang"
packages: "clang"
packages_to_remove: ""
os: "ubuntu-20.04"
container: "ubuntu:16.04"
os: "ubuntu-latest"
container: "ubuntu:18.04"
cxx: "clang++"
sources: ""
llvm_os: ""
Expand All @@ -79,22 +79,29 @@ jobs:
cxxstd: "11,14,1z"

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
- name: If running in container, upgrade packages
if: matrix.container != ''
- name: Setup container environment
if: matrix.container
run: |
apt-get update
apt-get -y install sudo python3 git g++ curl xz-utils

- name: Install nodejs20glibc2.17
if: ${{ startsWith( matrix.container, 'ubuntu:1' ) }}
run: |
apt-get -o Acquire::Retries=3 update && DEBIAN_FRONTEND=noninteractive apt-get -y install tzdata && apt-get -o Acquire::Retries=3 install -y sudo software-properties-common wget curl apt-transport-https make apt-file sudo unzip libssl-dev build-essential autotools-dev autoconf automake g++ libc++-helpers python ruby cpio gcc-multilib g++-multilib pkgconf python3 ccache libpython-dev
sudo apt-add-repository ppa:git-core/ppa
sudo apt-get -o Acquire::Retries=3 update && apt-get -o Acquire::Retries=3 -y install git
python_version=$(python3 -c 'import sys; print("{0.major}.{0.minor}".format(sys.version_info))')
sudo wget https://bootstrap.pypa.io/pip/$python_version/get-pip.py
sudo python3 get-pip.py
sudo /usr/local/bin/pip install cmake
curl -LO https://archives.boost.io/misc/node/node-v20.9.0-linux-x64-glibc-217.tar.xz
tar -xf node-v20.9.0-linux-x64-glibc-217.tar.xz --strip-components 1 -C /node20217
ldd /__e/node20/bin/node

- name: Install packages
if: matrix.packages
run: sudo apt-get -y install ${{matrix.packages}}

- uses: actions/checkout@v2

Expand All @@ -117,28 +124,6 @@ jobs:
echo '==================================> PACKAGES'
set -e
if [ -n "$PACKAGES_TO_REMOVE" ]; then sudo apt-get purge -y $PACKAGES_TO_REMOVE; fi
echo ">>>>> APT: REPO.."
for i in {1..3}; do sudo -E apt-add-repository -y "ppa:ubuntu-toolchain-r/test" && break || sleep 2; done

if test -n "${LLVM_OS}" ; then
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
if test -n "${LLVM_VER}" ; then
sudo -E apt-add-repository "deb http://apt.llvm.org/${LLVM_OS}/ llvm-toolchain-${LLVM_OS}-${LLVM_VER} main"
else
# Snapshot (i.e. trunk) build of clang
sudo -E apt-add-repository "deb http://apt.llvm.org/${LLVM_OS}/ llvm-toolchain-${LLVM_OS} main"
fi
fi
echo ">>>>> APT: UPDATE.."
sudo -E apt-get -o Acquire::Retries=3 update
if test -n "${SOURCES}" ; then
echo ">>>>> APT: INSTALL SOURCES.."
for SOURCE in $SOURCES; do
sudo -E apt-add-repository ppa:$SOURCE
done
fi
echo ">>>>> APT: INSTALL ${PACKAGES}.."
sudo -E DEBIAN_FRONTEND=noninteractive apt-get -o Acquire::Retries=3 -y --no-install-suggests --no-install-recommends install ${PACKAGES}

echo '==================================> INSTALL AND COMPILE'
set -e
Expand All @@ -163,7 +148,7 @@ jobs:
git submodule update --init libs/config
git submodule update --init tools/boostdep
cp -r $TRAVIS_BUILD_DIR/* libs/icl
python tools/boostdep/depinst/depinst.py icl
python3 tools/boostdep/depinst/depinst.py icl
./bootstrap.sh
./b2 headers

Expand All @@ -180,7 +165,7 @@ jobs:
- name: "TOOLSET=clang CXXSTD=11,14,1z Job 5"
buildtype: "boost"
packages: ""
os: "macos-11"
os: "macos-latest"
cxx: "clang++"
sources: ""
llvm_os: ""
Expand All @@ -194,12 +179,6 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Set DEVELOPER_DIR
if: matrix.xcode_version != ''
run: echo "DEVELOPER_DIR=/Applications/Xcode_${{ matrix.xcode_version }}.app/Contents/Developer" >> $GITHUB_ENV
- name: Test DEVELOPER_DIR
run: echo $DEVELOPER_DIR

- name: "osx"
shell: bash
env:
Expand Down Expand Up @@ -241,7 +220,7 @@ jobs:
git submodule update --init libs/config
git submodule update --init tools/boostdep
cp -r $TRAVIS_BUILD_DIR/* libs/icl
python tools/boostdep/depinst/depinst.py icl
python3 tools/boostdep/depinst/depinst.py icl
./bootstrap.sh
./b2 headers

Expand Down
39 changes: 39 additions & 0 deletions build.jam
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Copyright René Ferdinand Rivera Morell 2023-2024
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE_1_0.txt or copy at
# http://www.boost.org/LICENSE_1_0.txt)

require-b2 5.2 ;

constant boost_dependencies :
/boost/assert//boost_assert
/boost/concept_check//boost_concept_check
/boost/config//boost_config
/boost/container//boost_container
/boost/core//boost_core
/boost/date_time//boost_date_time
/boost/detail//boost_detail
/boost/iterator//boost_iterator
/boost/move//boost_move
/boost/mpl//boost_mpl
/boost/range//boost_range
/boost/rational//boost_rational
/boost/static_assert//boost_static_assert
/boost/type_traits//boost_type_traits
/boost/utility//boost_utility ;

project /boost/icl
;

explicit
[ alias boost_icl : : :
: <include>include <library>$(boost_dependencies) ]
[ alias all : boost_icl
example example/boost_party_ example/custom_interval_
example/partys_height_average_ example/partys_tallest_guests_
test ]
;

call-if : boost-library icl
;

2 changes: 1 addition & 1 deletion doc/Jamfile.v2
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import quickbook ;

doxygen icldoc
:
[ glob ../../../boost/icl/*.hpp ]
[ glob ../include/boost/icl/*.hpp ]
:
<doxygen:param>EXTRACT_ALL=NO
<doxygen:param>HIDE_UNDOC_MEMBERS=YES
Expand Down
38 changes: 2 additions & 36 deletions example/Jamfile.v2
Original file line number Diff line number Diff line change
Expand Up @@ -2,135 +2,105 @@
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)

project : requirements <library>/boost/icl//boost_icl ;

# Examples that do not use boost_date_time
exe interval
:
interval_/interval.cpp
:
<include>../../..
<include>$(BOOST_ROOT)
;

exe interval_container
:
interval_container_/interval_container.cpp
:
<include>../../..
<include>$(BOOST_ROOT)
;

exe overlap_counter
:
overlap_counter_/overlap_counter.cpp
:
<include>../../..
<include>$(BOOST_ROOT)
;

exe party
:
party_/party.cpp
:
<include>../../..
<include>$(BOOST_ROOT)
;

exe std_copy
:
std_copy_/std_copy.cpp
:
<include>../../..
<include>$(BOOST_ROOT)
;

exe std_transform
:
std_transform_/std_transform.cpp
:
<include>../../..
<include>$(BOOST_ROOT)
;

exe custom_interval
:
custom_interval_/custom_interval.cpp
:
<include>../../..
<include>$(BOOST_ROOT)
;

exe dynamic_interval
:
dynamic_interval_/dynamic_interval.cpp
:
<include>../../..
<include>$(BOOST_ROOT)
;

exe static_interval
:
static_interval_/static_interval.cpp
:
<include>../../..
<include>$(BOOST_ROOT)
;

# Examples using boost_date_time
exe boost_party
:
boost_party_/boost_party.cpp
:
<include>../../..
<include>$(BOOST_ROOT)
;

exe partys_height_average
:
partys_height_average_/partys_height_average.cpp
:
<include>../../..
<include>$(BOOST_ROOT)
;

exe partys_tallest_guests
:
partys_tallest_guests_/partys_tallest_guests.cpp
:
<include>../../..
<include>$(BOOST_ROOT)
;

exe man_power
:
man_power_/man_power.cpp
:
<include>../../..
<include>$(BOOST_ROOT)
;

exe month_and_week_grid
:
month_and_week_grid_/month_and_week_grid.cpp
:
<include>../../..
<include>$(BOOST_ROOT)
;

exe user_groups
:
user_groups_/user_groups.cpp
:
<include>../../..
<include>$(BOOST_ROOT)
;

# Projects
exe large_bitset
:
large_bitset_/large_bitset.cpp
:
<include>../../..
<include>$(BOOST_ROOT)
;


Expand All @@ -139,15 +109,11 @@ exe itvset_shell
:
itvset_shell_/itvset_shell.cpp
:
<include>../../..
<include>$(BOOST_ROOT)
;

exe splititvmap_shell
:
splititvmap_shell_/splititvmap_shell.cpp
:
<include>../../..
<include>$(BOOST_ROOT)
;

2 changes: 0 additions & 2 deletions example/boost_party_/Jamfile.v2
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,4 @@ exe boost_party
:
boost_party.cpp
:
<include>../../..
<include>$(BOOST_ROOT)
;
2 changes: 0 additions & 2 deletions example/custom_interval_/Jamfile.v2
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,4 @@ exe custom_interval
:
custom_interval.cpp
:
<include>../../..
<include>$(BOOST_ROOT)
;
2 changes: 0 additions & 2 deletions example/partys_height_average_/Jamfile.v2
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,4 @@ exe partys_height_average
:
partys_height_average.cpp
:
<include>../../..
<include>$(BOOST_ROOT)
;
2 changes: 0 additions & 2 deletions example/partys_tallest_guests_/Jamfile.v2
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,4 @@ exe partys_tallest_guests
:
partys_tallest_guests.cpp
:
<include>../../..
<include>$(BOOST_ROOT)
;
Loading