Skip to content

New mailbox

New mailbox #918

Workflow file for this run

on:
pull_request:
push:
branches:
- main
jobs:
build:
strategy:
matrix:
cxx_standard: [11, 14, 17]
build_type: ["Release", "Debug"]
configuration: [
{"UBUNTU_VERSION":"18.04", "UBUNTU_RELEASE":"bionic", "TOOLCHAIN_VERSION":"5.0"},
{"UBUNTU_VERSION":"18.04", "UBUNTU_RELEASE":"bionic", "TOOLCHAIN_VERSION":"6.0"},
{"UBUNTU_VERSION":"18.04", "UBUNTU_RELEASE":"bionic", "TOOLCHAIN_VERSION":"7"},
{"UBUNTU_VERSION":"18.04", "UBUNTU_RELEASE":"bionic", "TOOLCHAIN_VERSION":"8"},
{"UBUNTU_VERSION":"18.04", "UBUNTU_RELEASE":"bionic", "TOOLCHAIN_VERSION":"9"},
{"UBUNTU_VERSION":"18.04", "UBUNTU_RELEASE":"bionic", "TOOLCHAIN_VERSION":"10"},
{"UBUNTU_VERSION":"18.04", "UBUNTU_RELEASE":"bionic", "TOOLCHAIN_VERSION":"11"},
{"UBUNTU_VERSION":"18.04", "UBUNTU_RELEASE":"bionic", "TOOLCHAIN_VERSION":"12"},
{"UBUNTU_VERSION":"18.04", "UBUNTU_RELEASE":"bionic", "TOOLCHAIN_VERSION":"13"},
{"UBUNTU_VERSION":"18.04", "UBUNTU_RELEASE":"bionic", "TOOLCHAIN_VERSION":"14"},
{"UBUNTU_VERSION":"18.04", "UBUNTU_RELEASE":"bionic", "TOOLCHAIN_VERSION":"15"},
{"UBUNTU_VERSION":"18.04", "UBUNTU_RELEASE":"bionic", "TOOLCHAIN_VERSION":"16"},
# {"UBUNTU_VERSION":"20.04", "UBUNTU_RELEASE":"focal", "TOOLCHAIN_VERSION":"9"},
# {"UBUNTU_VERSION":"20.04", "UBUNTU_RELEASE":"focal", "TOOLCHAIN_VERSION":"10"},
# {"UBUNTU_VERSION":"20.04", "UBUNTU_RELEASE":"focal", "TOOLCHAIN_VERSION":"11"},
# {"UBUNTU_VERSION":"20.04", "UBUNTU_RELEASE":"focal", "TOOLCHAIN_VERSION":"12"},
# {"UBUNTU_VERSION":"20.04", "UBUNTU_RELEASE":"focal", "TOOLCHAIN_VERSION":"13"},
# {"UBUNTU_VERSION":"20.04", "UBUNTU_RELEASE":"focal", "TOOLCHAIN_VERSION":"14"},
# {"UBUNTU_VERSION":"20.04", "UBUNTU_RELEASE":"focal", "TOOLCHAIN_VERSION":"15"},
# {"UBUNTU_VERSION":"20.04", "UBUNTU_RELEASE":"focal", "TOOLCHAIN_VERSION":"16"},
# {"UBUNTU_VERSION":"22.04", "UBUNTU_RELEASE":"jammy", "TOOLCHAIN_VERSION":"13"},
# {"UBUNTU_VERSION":"22.04", "UBUNTU_RELEASE":"jammy", "TOOLCHAIN_VERSION":"14"},
# {"UBUNTU_VERSION":"22.04", "UBUNTU_RELEASE":"jammy", "TOOLCHAIN_VERSION":"15"},
# {"UBUNTU_VERSION":"22.04", "UBUNTU_RELEASE":"jammy", "TOOLCHAIN_VERSION":"16"}
]
runs-on: ubuntu-latest
container:
image: ubuntu:${{matrix.configuration.UBUNTU_VERSION}}
steps:
- uses: actions/checkout@v2
- name: Install system dependencies
env:
DEBIAN_FRONTEND: noninteractive
run: |
apt update && apt-get install -y \
software-properties-common ca-certificates \
ninja-build make \
python3-pip python3 python3-dev python3-setuptools \
zlib1g-dev wget
add-apt-repository ppa:ubuntu-toolchain-r/test
python3 -m pip install --upgrade pip
python3 -m pip install --no-cache-dir conan==1.59 cmake
- name: Install compiler
run: |
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add -
add-apt-repository "deb http://apt.llvm.org/${{matrix.configuration.UBUNTU_RELEASE}}/ llvm-toolchain-${{matrix.configuration.UBUNTU_RELEASE}}-${{matrix.configuration.TOOLCHAIN_VERSION}} main"
wget https://apt.llvm.org/${{matrix.configuration.UBUNTU_RELEASE}}/dists/llvm-toolchain-${{matrix.configuration.UBUNTU_RELEASE}}-${{matrix.configuration.TOOLCHAIN_VERSION}}/main/binary-amd64/Packages
cat Packages \
| grep -Po "^Package: [a-zA-Z0-9-.\+ ]+$" \
| sed -e 's/Package:/ /g' \
| sed -e 's/[+\.a-zA-Z0-9-]*wasm[+\.a-zA-Z0-9-]*$/ /g' \
| sed -e 's/[+\.a-zA-Z0-9-]*polly[+\.a-zA-Z0-9-]*$/ /g' \
| sed -e 's/[+\.a-zA-Z0-9-]*python[+\.a-zA-Z0-9-]*$/ /g' \
| sed -e 's/.*-\(doc\|tools\|examples\|format\|tidy\|ocaml\|fuzzer\).*$/ /g' \
> pkglist
cat pkglist
apt update && apt-get install -y $(cat pkglist)
- name: Configure CMake
env:
CC: clang-${{matrix.configuration.TOOLCHAIN_VERSION}}
CXX: clang++-${{matrix.configuration.TOOLCHAIN_VERSION}}
BUILD_TYPE: ${{matrix.build_type}}
CXX_STANDARD: ${{matrix.cxx_standard}}
run: |
mkdir -p build
cmake -B build -GNinja \
-DCMAKE_BUILD_TYPE=${BUILD_TYPE} \
-DCMAKE_CXX_STANDARD=${CXX_STANDARD} \
-DCMAKE_C_COMPILER=${CC} \
-DCMAKE_CXX_COMPILER=${CXX} \
-DALLOW_EXAMPLES=ON \
-DALLOW_TESTS=ON \
-DENABLE_TESTS_MEASUREMENTS=ON \
-DALLOW_BENCHMARK=ON \
-DEXCEPTIONS_DISABLE=ON \
-DRTTI_DISABLE=ON
- name: Build
run: cmake --build build
- name: Test
working-directory: build
run: ctest --rerun-failed --output-on-failure
- name: Analyze dependencies
working-directory: build
run: ldd bin/dataflow