Skip to content

work with CMake < 3.21 #169

work with CMake < 3.21

work with CMake < 3.21 #169

Workflow file for this run

name: ci
env:
HOMEBREW_NO_INSTALL_CLEANUP: 1
CTEST_NO_TESTS_ACTION: error
CMAKE_BUILD_PARALLEL_LEVEL: 4
CTEST_PARALLEL_LEVEL: 0
CMAKE_INSTALL_PREFIX: ~/libs
CMAKE_PREFIX_PATH: ~/libs
on:
push:
paths:
- "**.f90"
- "**.F90"
- "**.cmake"
- "**/CMakeLists.txt"
- ".github/workflows/ci.yml"
- "!scripts/**"
jobs:
fortran:
strategy:
matrix:
shared: [true, false]
os: [ubuntu-24.04, macos-latest]
runs-on: ${{ matrix.os }}
timeout-minutes: 7
env:
FC: gfortran-13
steps:
- name: install prereqs (Linux)
if: runner.os == 'Linux'
run: |
sudo apt update
sudo apt install --no-install-recommends libopenmpi-dev openmpi-bin liblapack-dev
- name: install prereqs (macOS)
if: runner.os == 'macOS'
run: |
brew install open-mpi
- uses: actions/checkout@v4
- name: Config
run: cmake -B build -DBUILD_SINGLE:BOOL=off -DBUILD_SHARED_LIBS:BOOL=${{ matrix.shared }}
- name: build / test
run: cmake --workflow --preset default
- name: install
run: cmake --install build
- name: example Config
run: cmake -S example -B example/build -DBUILD_SHARED_LIBS:BOOL=${{ matrix.shared }}
- name: build
run: cmake --build example/build
- name: test
run: ctest --test-dir example/build -V