mirror of
https://github.com/boostorg/beast.git
synced 2025-08-02 14:24:31 +02:00
50
.github/workflows/ci.yml
vendored
50
.github/workflows/ci.yml
vendored
@@ -16,19 +16,22 @@ jobs:
|
|||||||
# minimum requirement is gcc 4.8
|
# minimum requirement is gcc 4.8
|
||||||
- toolset: gcc-4.8
|
- toolset: gcc-4.8
|
||||||
cxxstd: "11"
|
cxxstd: "11"
|
||||||
os: ubuntu-16.04
|
os: ubuntu-20.04
|
||||||
|
container: ubuntu:16.04
|
||||||
install: g++-4.8
|
install: g++-4.8
|
||||||
supported: true
|
supported: true
|
||||||
# gcc 4.9 not supported by beast
|
# gcc 4.9 not supported by beast
|
||||||
# It dies with ICE when compiling
|
# It dies with ICE when compiling
|
||||||
- toolset: gcc-5
|
- toolset: gcc-5
|
||||||
cxxstd: "11,14,1z"
|
cxxstd: "11,14,1z"
|
||||||
os: ubuntu-16.04
|
os: ubuntu-20.04
|
||||||
|
container: ubuntu:16.04
|
||||||
install: g++-5
|
install: g++-5
|
||||||
supported: true
|
supported: true
|
||||||
- toolset: gcc-6
|
- toolset: gcc-6
|
||||||
cxxstd: "11,14,1z"
|
cxxstd: "11,14,1z"
|
||||||
os: ubuntu-16.04
|
os: ubuntu-20.04
|
||||||
|
container: ubuntu:16.04
|
||||||
install: g++-6
|
install: g++-6
|
||||||
supported: true
|
supported: true
|
||||||
- toolset: gcc-7
|
- toolset: gcc-7
|
||||||
@@ -56,37 +59,43 @@ jobs:
|
|||||||
- toolset: clang
|
- toolset: clang
|
||||||
compiler: clang++-3.6
|
compiler: clang++-3.6
|
||||||
cxxstd: "11,14"
|
cxxstd: "11,14"
|
||||||
os: ubuntu-16.04
|
os: ubuntu-20.04
|
||||||
|
container: ubuntu:16.04
|
||||||
install: clang-3.6
|
install: clang-3.6
|
||||||
supported: true
|
supported: true
|
||||||
- toolset: clang
|
- toolset: clang
|
||||||
compiler: clang++-3.7
|
compiler: clang++-3.7
|
||||||
cxxstd: "11,14"
|
cxxstd: "11,14"
|
||||||
os: ubuntu-16.04
|
os: ubuntu-20.04
|
||||||
|
container: ubuntu:16.04
|
||||||
install: clang-3.7
|
install: clang-3.7
|
||||||
supported: true
|
supported: true
|
||||||
- toolset: clang
|
- toolset: clang
|
||||||
compiler: clang++-3.8
|
compiler: clang++-3.8
|
||||||
cxxstd: "11,14"
|
cxxstd: "11,14"
|
||||||
os: ubuntu-16.04
|
os: ubuntu-20.04
|
||||||
|
container: ubuntu:16.04
|
||||||
install: clang-3.8
|
install: clang-3.8
|
||||||
supported: true
|
supported: true
|
||||||
- toolset: clang
|
- toolset: clang
|
||||||
compiler: clang++-3.9
|
compiler: clang++-3.9
|
||||||
cxxstd: "11,14"
|
cxxstd: "11,14"
|
||||||
os: ubuntu-16.04
|
os: ubuntu-20.04
|
||||||
|
container: ubuntu:16.04
|
||||||
install: clang-3.9
|
install: clang-3.9
|
||||||
supported: true
|
supported: true
|
||||||
- toolset: clang
|
- toolset: clang
|
||||||
compiler: clang++-4.0
|
compiler: clang++-4.0
|
||||||
cxxstd: "11,14"
|
cxxstd: "11,14"
|
||||||
os: ubuntu-16.04
|
os: ubuntu-20.04
|
||||||
|
container: ubuntu:16.04
|
||||||
install: clang-4.0
|
install: clang-4.0
|
||||||
supported: true
|
supported: true
|
||||||
- toolset: clang
|
- toolset: clang
|
||||||
compiler: clang++-5.0
|
compiler: clang++-5.0
|
||||||
cxxstd: "11,14,1z"
|
cxxstd: "11,14,1z"
|
||||||
os: ubuntu-16.04
|
os: ubuntu-20.04
|
||||||
|
container: ubuntu:16.04
|
||||||
install: clang-5.0
|
install: clang-5.0
|
||||||
supported: true
|
supported: true
|
||||||
- toolset: clang
|
- toolset: clang
|
||||||
@@ -141,16 +150,34 @@ jobs:
|
|||||||
os: macos-10.15
|
os: macos-10.15
|
||||||
supported: true
|
supported: true
|
||||||
|
|
||||||
runs-on: ${{matrix.os}}
|
runs-on: ${{ matrix.os }}
|
||||||
|
container: ${{ matrix.container }}
|
||||||
|
|
||||||
steps:
|
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
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Install packages
|
- name: Install packages
|
||||||
if: matrix.install
|
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
|
- name: Setup Boost
|
||||||
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
if [[ $(uname) =~ [Ll]inux ]]; then
|
if [[ $(uname) =~ [Ll]inux ]]; then
|
||||||
echo Installing locales for ${TRAVIS_OS_NAME} ...
|
echo Installing locales for ${TRAVIS_OS_NAME} ...
|
||||||
@@ -201,6 +228,7 @@ jobs:
|
|||||||
echo "using ${{matrix.toolset}} : : ${{matrix.compiler}} ;" >> ~/user-config.jam
|
echo "using ${{matrix.toolset}} : : ${{matrix.compiler}} ;" >> ~/user-config.jam
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
cd ../boost-root
|
cd ../boost-root
|
||||||
if [[ "${{matrix.supported}}" != "true" ]] ; then
|
if [[ "${{matrix.supported}}" != "true" ]] ; then
|
||||||
|
@@ -1,3 +1,7 @@
|
|||||||
|
* Update GitHub Actions CI.
|
||||||
|
|
||||||
|
--------------------------------------------------------------------------------
|
||||||
|
|
||||||
Version 319:
|
Version 319:
|
||||||
|
|
||||||
* Update release notes for Boost 1.77.
|
* Update release notes for Boost 1.77.
|
||||||
|
@@ -57,7 +57,11 @@ public:
|
|||||||
os << '*';
|
os << '*';
|
||||||
fail("missing exception", __FILE__, __LINE__);
|
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();
|
pass();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user