xref: /libCEED/.github/workflows/c-fortran-test-linux-osx.yml (revision edf0491998c1d524f2f70fdd683669b8904cb3b6)
1name: C/Fortran
2
3on:
4  push:
5    branches:
6      - main
7  pull_request:
8
9jobs:
10  test:
11    strategy:
12      matrix:
13        os: [ubuntu-22.04, macos-12]
14        compiler: [gcc-11, clang]
15        include:
16        - os: ubuntu-22.04
17          asan: 1
18
19    runs-on: ${{ matrix.os }}
20
21    steps:
22    - name: Environment setup
23      uses: actions/checkout@v3
24    - name: Build and test libCEED
25      env:
26        CC: ${{ matrix.compiler }}
27        FC: gfortran-11
28        AFLAGS: -fsanitize=address -fsanitize=leak
29        ASAN: ${{ matrix.asan }}
30      run: |
31        make -v
32        make info
33        make -j2
34        PROVE_OPTS=-v make prove -j2
35