name: C/Fortran

on:
  push:

jobs:
  test:
    strategy:
      matrix:
        os: [ubuntu-22.04, macos-12]
        compiler: [gcc-11, clang]

    runs-on: ${{ matrix.os }}

    steps:
    - name: Environment setup
      uses: actions/checkout@v3
    - name: Build and test libCEED
      env:
        CC: ${{ matrix.compiler }}
        FC: gfortran-11
      run: |
        make -v
        make info
        make -j2
        PROVE_OPTS=-v make prove -j2
