throw not_found in case of not found, allows to catch this with error… #52
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
# This starter workflow is for a CMake project running on multiple platforms. There is a different starter workflow if you just want a single platform. | |
# See: https://github.com/actions/starter-workflows/blob/main/ci/cmake-single-platform.yml | |
name: multi platform test | |
on: | |
push: | |
branches: [ "trunk", "develop" ] | |
pull_request: | |
branches: [ "trunk" ] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
build_type: [ Release ] | |
include: | |
- os: windows-latest | |
cpp_compiler: cl | |
- os: ubuntu-latest | |
cpp_compiler: g++ | |
- os: macos-latest | |
cpp_compiler: clang++ | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set reusable strings | |
id: strings | |
shell: bash | |
run: | | |
echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT" | |
- name: Install dependencies Ubuntu | |
if: matrix.os == 'ubuntu-latest' | |
run: > | |
sudo apt-get update && sudo apt-get install libboost-dev mrc | |
- name: Install Boost Windows | |
if: matrix.os == 'windows-latest' | |
uses: MarkusJx/[email protected] | |
id: install-boost | |
with: | |
boost_version: 1.82.0 | |
platform_version: 2019 | |
toolset: msvc | |
- name: Install Boost macOS | |
if: matrix.os == 'macos-latest' | |
run: > | |
brew install boost | |
- name: Configure CMake | |
env: | |
BOOST_ROOT: ${{ steps.install-boost.outputs.BOOST_ROOT }} | |
run: > | |
cmake -B ${{ steps.strings.outputs.build-output-dir }} | |
-DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }} | |
-S ${{ github.workspace }} | |
- name: Build | |
run: cmake --build ${{ steps.strings.outputs.build-output-dir }} --config ${{ matrix.build_type }} | |
- name: Test | |
working-directory: ${{ steps.strings.outputs.build-output-dir }} | |
run: ctest --build-config ${{ matrix.build_type }} --output-on-failure |