Unoriented sphere der #608
Workflow file for this run
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: Build and run tests | |
defaults: | |
run: | |
shell: bash | |
on: | |
pull_request: | |
branches: | |
- master | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ${{ matrix.config.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
config: | |
- { name: "Windows MSVC", os: windows-latest, cc: "cl.exe", cxx: "cl.exe", icon: "Windows"} | |
- { name: "Ubuntu gcc", os: ubuntu-latest, cc: "gcc", cxx: "g++", icon: "Linux" } | |
- { name: "MacOS clang", os: macos-latest, cc: "clang", cxx: "clang++", icon: "Apple" } | |
steps: | |
- uses: seanmiddleditch/gha-setup-ninja@master | |
- name: Add msbuild to PATH | |
uses: seanmiddleditch/gha-setup-vsdevenv@master | |
if: runner.os == 'Windows' | |
- name: Checkout remote head | |
uses: actions/checkout@master | |
with: | |
path: src | |
- name: cmake | |
run: mkdir build && cd build && cmake ../src -GNinja -DCMAKE_CXX_COMPILER=${{ matrix.config.cxx }} -DCMAKE_C_COMPILER=${{ matrix.config.cc }} -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=../install -DPONCA_CONFIGURE_EXAMPLES=ON -DPONCA_CONFIGURE_DOC=ON -DPONCA_CONFIGURE_TESTS=ON | |
- name: make buildtests | |
run: cd build && cmake --build . --target buildtests | |
- name: make ContinuousTest | |
run: cd build && cmake --build . --target test | |
- name: Handle test failure | |
if: ${{ failure() }} | |
run: cd build && cmake --build . --target test -- ARGS="-V --rerun-failed --output-on-failure" | |
- name: make ponca-examples | |
run: cd build && cmake --build . --target ponca-examples | |
- name: make install | |
run: cd build && cmake --build . --target install |