Skip to content

cmake < 3.21 top_level #36

cmake < 3.21 top_level

cmake < 3.21 top_level #36

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
on:
push:
paths:
- "**.f"
- "**.f90"
- "**/CMakeLists.txt"
- "**.cmake"
- ".github/workflows/ci.yml"
jobs:
unix:
strategy:
matrix:
shared: [true, false]
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
timeout-minutes: 15
env:
FC: gfortran-13
CMAKE_INSTALL_PREFIX: ~/libs
steps:
- uses: actions/checkout@v4
- name: Configure
run: cmake --preset default -DBUILD_SHARED_LIBS:BOOL=${{ matrix.shared }}
- name: Build
run: cmake --build --preset default
- name: Test
run: ctest --preset default
- name: Install
run: cmake --install build
windows:
timeout-minutes: 15
runs-on: windows-latest
env:
CMAKE_GENERATOR: MinGW Makefiles
# shared always error 135 even on only shared. not a problem on real pc.
steps:
- uses: msys2/setup-msys2@v2
with:
update: true
install: >-
mingw-w64-x86_64-gcc-fortran
- name: Put MSYS2_MinGW64 on PATH
run: echo "${{ runner.temp }}/msys64/mingw64/bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
- uses: actions/checkout@v4
- name: Configure
run: cmake --workflow --preset default