Skip to content

Build system cleanup #595

Build system cleanup

Build system cleanup #595

Workflow file for this run

name: build-macos
# Controls when the action will run
on:
push:
pull_request:
workflow_dispatch: # trigger the workflow manually
# # trigger the workflow on schedule
# # https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows#scheduled-events
# schedule:
# - cron: '* * * * *'
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
build:
runs-on: ${{ matrix.runner }}
continue-on-error: false
strategy:
matrix:
runner: [macos-11]
compiler: [clang++, g++-11] # $(brew --prefix llvm)/bin/clang++ (clang-11)
fortran_compiler: [gfortran-11]
steps:
- uses: actions/checkout@v2
- name: Install requirements
run: python3 -m pip install numpy
- name: Build
run: >
rm -rf build && mkdir -p build && cd build &&
cmake
-D CMAKE_INSTALL_PREFIX=./TasmanianInstall
-D CMAKE_CXX_FLAGS="-O3 -Wall -Wextra -Wshadow -pedantic"
-D CMAKE_CXX_COMPILER=${{ matrix.compiler }}
-D CMAKE_Fortran_COMPILER=${{ matrix.fortran_compiler }}
-D PYTHON_EXECUTABLE=/usr/local/bin/python3
-D Tasmanian_ENABLE_FORTRAN=ON
-D Tasmanian_ENABLE_RECOMMENDED=ON
-D Tasmanian_TESTS_OMP_NUM_THREADS=4 .. &&
make -j4
- name: Test
run: cd build && ctest -j4 -V --no-compress-output -T Test
- name: Install
run: cd build && make install && make test_install