Skip to content

added nodiscard in main branch #63

added nodiscard in main branch

added nodiscard in main branch #63

Workflow file for this run

name: psssafeint-tests
on: [push]
jobs:
run-all-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: create build directory
run: mkdir -p -v ${{github.workspace}}/build
- name: Configure CMake
working-directory: ${{github.workspace}}/build
shell: bash
env:
CC: gcc-10
CXX: g++-10
run: cmake ${{github.workspace}}/cevelop-workspace/PSSafeIntTests/
- name: Build
working-directory: ${{github.workspace}}/build
shell: bash
env:
CC: gcc-10
CXX: g++-10
run: cmake --build . -- CXX_FLAGS="-std=c++20 -DPS_ASSERT_THROWS -O2"
- name: Test
working-directory: ${{github.workspace}}/build
run: ctest --output-on-failure
- name: Configure CMake ndebug
working-directory: ${{github.workspace}}/build
shell: bash
env:
CC: gcc-10
CXX: g++-10
run: cmake ${{github.workspace}}/cevelop-workspace/PSSafeIntTests/ -DCMAKE_BUILD_TYPE=Release
- name: Build ndebug
working-directory: ${{github.workspace}}/build
shell: bash
env:
CC: gcc-10
CXX: g++-10
run: cmake --build . -- CXX_FLAGS="-std=c++20 -DPS_ASSERT_THROWS -O2"
- name: Test ndebug
working-directory: ${{github.workspace}}/build
run: ctest --output-on-failure
- name: Configure CMake throw
working-directory: ${{github.workspace}}/build
shell: bash
env:
CC: gcc-10
CXX: g++-10
run: cmake ${{github.workspace}}/cevelop-workspace/PSSafeIntTests/ -DCMAKE_BUILD_TYPE=Throw
- name: Build throw
working-directory: ${{github.workspace}}/build
shell: bash
env:
CC: gcc-10
CXX: g++-10
run: cmake --build . -- CXX_FLAGS="-std=c++20 -DPS_ASSERT_THROWS -O2"
- name: Test throw
working-directory: ${{github.workspace}}/build
run: ctest --output-on-failure