Merge branch 'geoneric:master' into build_fix_gh88 #5
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: macOS CI | |
on: | |
pull_request: | |
types: [opened, reopened] | |
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 |