Fixed type_to_string template for Unary and Binary cases to comply c+… #43
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: GitHub Actions CI | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - master | |
| - develop | |
| - githubactions* | |
| - feature/** | |
| - fix/** | |
| - pr/** | |
| jobs: | |
| posix: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - name: "TOOLSET=gcc CXXSTD=11 Job 0" | |
| buildtype: "boost" | |
| packages: "" | |
| packages_to_remove: "" | |
| os: "ubuntu-latest" | |
| container: "ubuntu:16.04" | |
| cxx: "g++" | |
| sources: "" | |
| llvm_os: "" | |
| llvm_ver: "" | |
| toolset: "gcc" | |
| cxxstd: "11" | |
| - name: "TOOLSET=gcc-5 CXXSTD=11,14,1z Job 1" | |
| buildtype: "boost" | |
| packages: "g++-5" | |
| packages_to_remove: "" | |
| os: "ubuntu-latest" | |
| container: "ubuntu:18.04" | |
| cxx: "g++-5" | |
| sources: "" | |
| llvm_os: "" | |
| llvm_ver: "" | |
| toolset: "gcc-5" | |
| cxxstd: "11,14,1z" | |
| - name: "TOOLSET=gcc-6 CXXSTD=11,14,1z Job 2" | |
| buildtype: "boost" | |
| packages: "g++-6" | |
| packages_to_remove: "" | |
| os: "ubuntu-latest" | |
| container: "ubuntu:18.04" | |
| cxx: "g++-6" | |
| sources: "" | |
| llvm_os: "" | |
| llvm_ver: "" | |
| toolset: "gcc-6" | |
| cxxstd: "11,14,1z" | |
| - name: "TOOLSET=gcc-7 CXXSTD=11,14,17 Job 3" | |
| buildtype: "boost" | |
| packages: "g++-7" | |
| packages_to_remove: "" | |
| os: "ubuntu-latest" | |
| container: "ubuntu:18.04" | |
| cxx: "g++-7" | |
| sources: "" | |
| llvm_os: "" | |
| llvm_ver: "" | |
| toolset: "gcc-7" | |
| cxxstd: "11,14,17" | |
| - name: "TOOLSET=clang CXXSTD=11,14,1z Job 4" | |
| buildtype: "boost" | |
| packages: "clang" | |
| packages_to_remove: "" | |
| os: "ubuntu-latest" | |
| container: "ubuntu:18.04" | |
| cxx: "clang++" | |
| sources: "" | |
| llvm_os: "" | |
| llvm_ver: "" | |
| toolset: "clang" | |
| cxxstd: "11,14,1z" | |
| runs-on: ${{ matrix.os }} | |
| container: | |
| image: ${{matrix.container}} | |
| volumes: | |
| - /node20217:/node20217:rw,rshared | |
| - ${{ startsWith(matrix.container, 'ubuntu:1') && '/node20217:/__e/node20:ro,rshared' || ' ' }} | |
| steps: | |
| - 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: | | |
| 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 | |
| - name: linux | |
| shell: bash | |
| env: | |
| CXX: ${{ matrix.cxx }} | |
| SOURCES: ${{ matrix.sources }} | |
| LLVM_OS: ${{ matrix.llvm_os }} | |
| LLVM_VER: ${{ matrix.llvm_ver }} | |
| PACKAGES: ${{ matrix.packages }} | |
| PACKAGES_TO_REMOVE: ${{ matrix.packages_to_remove }} | |
| JOB_BUILDTYPE: ${{ matrix.buildtype }} | |
| TOOLSET: ${{ matrix.toolset }} | |
| CXXSTD: ${{ matrix.cxxstd }} | |
| TRAVIS_BRANCH: ${{ github.base_ref }} | |
| TRAVIS_OS_NAME: "linux" | |
| run: | | |
| echo '==================================> SETUP' | |
| echo '==================================> PACKAGES' | |
| set -e | |
| if [ -n "$PACKAGES_TO_REMOVE" ]; then sudo apt-get purge -y $PACKAGES_TO_REMOVE; fi | |
| echo '==================================> INSTALL AND COMPILE' | |
| set -e | |
| export TRAVIS_BUILD_DIR=$(pwd) | |
| export TRAVIS_BRANCH=${TRAVIS_BRANCH:-$(echo $GITHUB_REF | awk 'BEGIN { FS = "/" } ; { print $3 }')} | |
| export VCS_COMMIT_ID=$GITHUB_SHA | |
| export GIT_COMMIT=$GITHUB_SHA | |
| export REPO_NAME=$(basename $GITHUB_REPOSITORY) | |
| export USER=$(whoami) | |
| export CC=${CC:-gcc} | |
| export PATH=~/.local/bin:/usr/local/bin:$PATH | |
| if [ "$JOB_BUILDTYPE" == "boost" ]; then | |
| echo '==================================> INSTALL' | |
| BOOST_BRANCH=develop && [ "$TRAVIS_BRANCH" == "master" ] && BOOST_BRANCH=master || true | |
| cd .. | |
| git clone -b $BOOST_BRANCH https://github.com/boostorg/boost.git boost-root | |
| cd boost-root | |
| git submodule update --init tools/build | |
| git submodule update --init libs/config | |
| git submodule update --init tools/boostdep | |
| cp -r $TRAVIS_BUILD_DIR/* libs/icl | |
| python3 tools/boostdep/depinst/depinst.py icl | |
| ./bootstrap.sh | |
| ./b2 headers | |
| echo '==================================> SCRIPT' | |
| ./b2 -j 3 libs/icl/test toolset=$TOOLSET cxxstd=$CXXSTD | |
| fi | |
| osx: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - name: "TOOLSET=clang CXXSTD=11,14,1z Job 5" | |
| buildtype: "boost" | |
| packages: "" | |
| os: "macos-latest" | |
| cxx: "clang++" | |
| sources: "" | |
| llvm_os: "" | |
| llvm_ver: "" | |
| xcode_version: 11.7 | |
| toolset: "clang" | |
| cxxstd: "11,14,1z" | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: "osx" | |
| shell: bash | |
| env: | |
| CXX: ${{ matrix.cxx }} | |
| SOURCES: ${{ matrix.sources }} | |
| LLVM_OS: ${{ matrix.llvm_os }} | |
| LLVM_VER: ${{ matrix.llvm_ver }} | |
| PACKAGES: ${{ matrix.packages }} | |
| JOB_BUILDTYPE: ${{ matrix.buildtype }} | |
| TOOLSET: ${{ matrix.toolset }} | |
| CXXSTD: ${{ matrix.cxxstd }} | |
| TRAVIS_BRANCH: ${{ github.base_ref }} | |
| TRAVIS_OS_NAME: "osx" | |
| run: | | |
| echo '==================================> SETUP' | |
| set -e | |
| sudo mv /Library/Developer/CommandLineTools /Library/Developer/CommandLineTools.bck | |
| echo '==================================> PACKAGES' | |
| echo '==================================> INSTALL AND COMPILE' | |
| set -e | |
| export TRAVIS_BUILD_DIR=$(pwd) | |
| export TRAVIS_BRANCH=${TRAVIS_BRANCH:-$(echo $GITHUB_REF | awk 'BEGIN { FS = "/" } ; { print $3 }')} | |
| export VCS_COMMIT_ID=$GITHUB_SHA | |
| export GIT_COMMIT=$GITHUB_SHA | |
| export REPO_NAME=$(basename $GITHUB_REPOSITORY) | |
| export USER=$(whoami) | |
| export CC=${CC:-gcc} | |
| export PATH=~/.local/bin:/usr/local/bin:$PATH | |
| if [ "$JOB_BUILDTYPE" == "boost" ]; then | |
| echo '==================================> INSTALL' | |
| BOOST_BRANCH=develop && [ "$TRAVIS_BRANCH" == "master" ] && BOOST_BRANCH=master || true | |
| cd .. | |
| git clone -b $BOOST_BRANCH https://github.com/boostorg/boost.git boost-root | |
| cd boost-root | |
| git submodule update --init tools/build | |
| git submodule update --init libs/config | |
| git submodule update --init tools/boostdep | |
| cp -r $TRAVIS_BUILD_DIR/* libs/icl | |
| python3 tools/boostdep/depinst/depinst.py icl | |
| ./bootstrap.sh | |
| ./b2 headers | |
| echo '==================================> SCRIPT' | |
| ./b2 -j 3 libs/icl/test toolset=$TOOLSET cxxstd=$CXXSTD | |
| fi |