Merge pull request #775 from mkstoyanov/fix_python_executable_path #673
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: 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++] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install requirements | |
run: > | |
python3 -m venv tastest && source ./tastest/bin/activate && | |
python3 -m pip install pip --upgrade && | |
python3 -m pip install numpy | |
- name: Build | |
run: > | |
source ./tastest/bin/activate && | |
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 Tasmanian_ENABLE_FORTRAN=OFF | |
-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 |