Skip to content

update the macosx github runner #666

update the macosx github runner

update the macosx github runner #666

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-14]
compiler: [clang++, g++-13] # $(brew --prefix llvm)/bin/clang++ (clang-11)
fortran_compiler: [gfortran-13]
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 Tasmanian_ENABLE_FORTRAN=ON
-D Tasmanian_ENABLE_RECOMMENDED=ON
-D Tasmanian_TESTS_OMP_NUM_THREADS=3 .. &&
make -j3
- name: Test
run: cd build && ctest -V --no-compress-output -T Test
- name: Install
run: cd build && make install && make test_install