added nodiscard in main branch #63
This file contains 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: 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 |