Skip to content

C interface

C interface #85

Workflow file for this run

name: CMake build
on: [push, pull_request]
permissions:
contents: read
jobs:
cmake:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
toolchain:
- {compiler: gcc, version: 11}
- {compiler: intel-classic, version: '2021.9'}
include:
- os: ubuntu-latest
toolchain: {compiler: intel, version: '2023.1'}
steps:
- uses: actions/checkout@v3
- uses: awvwgk/setup-fortran@v1
id: setup-fortran
with:
compiler: ${{ matrix.toolchain.compiler }}
version: ${{ matrix.toolchain.version }}
- name: Build
run: |
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX=. -LAH .
cmake --build . --target install
ctest --output-on-failure -V
env:
FC: ${{ steps.setup-fortran.outputs.fc }}