Skip to content

Merge pull request #89 from pcraster/gh88 #3

Merge pull request #89 from pcraster/gh88

Merge pull request #89 from pcraster/gh88 #3

Workflow file for this run

name: macOS CI
on:
push:
branches-ignore:
- "ghxyz"
paths:
- ".github/workflows/macos.yml"
- "environment/cmake/**"
- "source/**"
jobs:
build:
strategy:
matrix:
os: ["macos-11", "macos-12"]
fail-fast: false
runs-on: ${{ matrix.os }}
name: ${{ matrix.os }}
steps:
- name: checkout fern
uses: actions/checkout@v3
with:
submodules: recursive
- name: configure system
run: |
brew install \
boost \
ninja
- name: configure fern
shell: bash -l {0}
run: |
mkdir build
cmake \
-S . \
-B build \
-G "Ninja Multi-Config" \
-D CMAKE_CONFIGURATION_TYPES="Release;Debug" \
-D FERN_BUILD_ALGORITHM=TRUE \
-D FERN_BUILD_TEST=TRUE
- name: build debug
shell: bash -l {0}
run: |
cmake --build build --config Debug --target all
- name: build release
shell: bash -l {0}
run: |
cmake --build build --config Release --target all
- name: test debug
shell: bash -l {0}
run: |
ctest --test-dir build --output-on-failure --build-config Debug
- name: test release
shell: bash -l {0}
run: |
ctest --test-dir build --output-on-failure --build-config Release