Skip to content

Prepare for release v.1.3 #626

Prepare for release v.1.3

Prepare for release v.1.3 #626

Workflow file for this run

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