mirror of
https://github.com/boostorg/beast.git
synced 2025-08-02 06:15:24 +02:00
48
.github/workflows/ci.yml
vendored
48
.github/workflows/ci.yml
vendored
@@ -16,19 +16,22 @@ jobs:
|
||||
# minimum requirement is gcc 4.8
|
||||
- toolset: gcc-4.8
|
||||
cxxstd: "11"
|
||||
os: ubuntu-16.04
|
||||
os: ubuntu-20.04
|
||||
container: ubuntu:16.04
|
||||
install: g++-4.8
|
||||
supported: true
|
||||
# gcc 4.9 not supported by beast
|
||||
# It dies with ICE when compiling
|
||||
- toolset: gcc-5
|
||||
cxxstd: "11,14,1z"
|
||||
os: ubuntu-16.04
|
||||
os: ubuntu-20.04
|
||||
container: ubuntu:16.04
|
||||
install: g++-5
|
||||
supported: true
|
||||
- toolset: gcc-6
|
||||
cxxstd: "11,14,1z"
|
||||
os: ubuntu-16.04
|
||||
os: ubuntu-20.04
|
||||
container: ubuntu:16.04
|
||||
install: g++-6
|
||||
supported: true
|
||||
- toolset: gcc-7
|
||||
@@ -56,37 +59,43 @@ jobs:
|
||||
- toolset: clang
|
||||
compiler: clang++-3.6
|
||||
cxxstd: "11,14"
|
||||
os: ubuntu-16.04
|
||||
os: ubuntu-20.04
|
||||
container: ubuntu:16.04
|
||||
install: clang-3.6
|
||||
supported: true
|
||||
- toolset: clang
|
||||
compiler: clang++-3.7
|
||||
cxxstd: "11,14"
|
||||
os: ubuntu-16.04
|
||||
os: ubuntu-20.04
|
||||
container: ubuntu:16.04
|
||||
install: clang-3.7
|
||||
supported: true
|
||||
- toolset: clang
|
||||
compiler: clang++-3.8
|
||||
cxxstd: "11,14"
|
||||
os: ubuntu-16.04
|
||||
os: ubuntu-20.04
|
||||
container: ubuntu:16.04
|
||||
install: clang-3.8
|
||||
supported: true
|
||||
- toolset: clang
|
||||
compiler: clang++-3.9
|
||||
cxxstd: "11,14"
|
||||
os: ubuntu-16.04
|
||||
os: ubuntu-20.04
|
||||
container: ubuntu:16.04
|
||||
install: clang-3.9
|
||||
supported: true
|
||||
- toolset: clang
|
||||
compiler: clang++-4.0
|
||||
cxxstd: "11,14"
|
||||
os: ubuntu-16.04
|
||||
os: ubuntu-20.04
|
||||
container: ubuntu:16.04
|
||||
install: clang-4.0
|
||||
supported: true
|
||||
- toolset: clang
|
||||
compiler: clang++-5.0
|
||||
cxxstd: "11,14,1z"
|
||||
os: ubuntu-16.04
|
||||
os: ubuntu-20.04
|
||||
container: ubuntu:16.04
|
||||
install: clang-5.0
|
||||
supported: true
|
||||
- toolset: clang
|
||||
@@ -142,15 +151,33 @@ jobs:
|
||||
supported: true
|
||||
|
||||
runs-on: ${{ matrix.os }}
|
||||
container: ${{ matrix.container }}
|
||||
|
||||
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 != ''
|
||||
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 locales
|
||||
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
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Install packages
|
||||
if: matrix.install
|
||||
run: sudo apt install ${{matrix.install}}
|
||||
run: |
|
||||
for i in {1..3}; do sudo -E apt-add-repository -y "ppa:ubuntu-toolchain-r/test" && break || sleep 2; done
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y ${{matrix.install}}
|
||||
|
||||
- name: Setup Boost
|
||||
shell: bash
|
||||
run: |
|
||||
if [[ $(uname) =~ [Ll]inux ]]; then
|
||||
echo Installing locales for ${TRAVIS_OS_NAME} ...
|
||||
@@ -201,6 +228,7 @@ jobs:
|
||||
echo "using ${{matrix.toolset}} : : ${{matrix.compiler}} ;" >> ~/user-config.jam
|
||||
|
||||
- name: Run tests
|
||||
shell: bash
|
||||
run: |
|
||||
cd ../boost-root
|
||||
if [[ "${{matrix.supported}}" != "true" ]] ; then
|
||||
|
@@ -1,3 +1,7 @@
|
||||
* Update GitHub Actions CI.
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
Version 319:
|
||||
|
||||
* Update release notes for Boost 1.77.
|
||||
|
@@ -57,7 +57,11 @@ public:
|
||||
os << '*';
|
||||
fail("missing exception", __FILE__, __LINE__);
|
||||
}
|
||||
catch(std::ios_base::failure const&)
|
||||
// We used to catch std::ios_base::failure which is strictly correct
|
||||
// however there is a rare historic ABI bug when stdlibc++ and the
|
||||
// program are compiled with different ABIs.
|
||||
// see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66145
|
||||
catch(std::exception&)
|
||||
{
|
||||
pass();
|
||||
}
|
||||
|
Reference in New Issue
Block a user