Skip to content

[OMON-722] Do not use C++20 auto function parameter #233

[OMON-722] Do not use C++20 auto function parameter

[OMON-722] Do not use C++20 auto function parameter #233

Workflow file for this run

name: Build and test
on: [pull_request]
jobs:
ubuntu:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install boost, curl and lcov
run: |
sudo apt-get update
sudo apt-get install -yq libcurl4-openssl-dev libboost-system1.74-dev libboost-test1.74-dev libboost-program-options1.74-dev lcov
- name: Run CMake
run: mkdir build && cd build && cmake .. -DCMAKE_BUILD_TYPE=Debug
- name: Build project
run: cd build && make -j
- name: Test
run: cd build && ctest --output-on-failure
- name: Generate codecov report
run: |
cd build
set -x
lcov --directory . --capture --output-file coverage.info
lcov --remove coverage.info '/opt/*' '/usr/*' --output-file coverage.info
lcov --list coverage.info
- uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: build/coverage.info
fail_ci_if_error: true
macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Install boost
run: brew install boost
- name: Run CMake
run: mkdir build && cd build && cmake ..
- name: Build project
run: cd build && make -j
- name: Test
run: cd build && ctest --output-on-failure
cs8:
runs-on: [self-hosted, cs8]
steps:
- uses: actions/checkout@v2
- name: CMake
run: mkdir build && cd build && source /opt/rh/gcc-toolset-10/enable && cmake ..
- name: Build
run: cd build && make -j
- name: Test
run: cd build && ctest --output-on-failure
cc7:
runs-on: [self-hosted, cc7]
steps:
- uses: actions/checkout@v2
- name: CMake
run: mkdir build && cd build && source /opt/rh/devtoolset-9/enable && cmake3 ..
- name: Build
run: cd build && make -j
- name: Test
run: cd build && ctest3 --output-on-failure