performance #5
This file contains hidden or 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: cmake | |
on: | |
push: | |
paths: | |
- "**.f90" | |
- "**.F90" | |
- "**.cmake" | |
- "**/CMakeLists.txt" | |
- ".github/workflows/cmake.yml" | |
workflow_dispatch: | |
# avoid wasted runs | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
linux: | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
# Macos fails to link pi only | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: install prereqs (linux) | |
if: runner.os == 'Linux' | |
run: | | |
sudo apt update | |
sudo apt install --no-install-recommends libopenmpi-dev libcoarrays-dev libcoarrays-openmpi-dev | |
- name: install prereqs (mac) | |
if: runner.os == 'macOS' | |
run: brew install opencoarrays | |
- run: cmake --workflow --preset debug | |
- run: cmake --workflow --preset release |