xref: /libCEED/.github/workflows/c-fortran-test-linux-osx.yml (revision e735508cdfa08f2ead7f8e6e8f825d0fa851c858)
1dfb8ed23Sjeremyltname: C/Fortran
23446d1b5SJeremy L Thompson
33446d1b5SJeremy L Thompsonon:
43446d1b5SJeremy L Thompson  push:
5dcd9f19cSJeremy L Thompson    branches:
6dcd9f19cSJeremy L Thompson      - main
7dcd9f19cSJeremy L Thompson  pull_request:
83446d1b5SJeremy L Thompson
93446d1b5SJeremy L Thompsonjobs:
103446d1b5SJeremy L Thompson  test:
113446d1b5SJeremy L Thompson    strategy:
123446d1b5SJeremy L Thompson      matrix:
136c0547c1SJeremy L Thompson        os: [ubuntu-22.04, macos-12]
146c0547c1SJeremy L Thompson        compiler: [gcc-11, clang]
15fb651866SJed Brown        include:
16fb651866SJed Brown        - os: ubuntu-22.04
17fb651866SJed Brown          asan: 1
183446d1b5SJeremy L Thompson
193446d1b5SJeremy L Thompson    runs-on: ${{ matrix.os }}
203446d1b5SJeremy L Thompson
213446d1b5SJeremy L Thompson    steps:
223446d1b5SJeremy L Thompson    - name: Environment setup
23*e735508cSJeremy L Thompson      uses: actions/checkout@v4
243446d1b5SJeremy L Thompson    - name: Build and test libCEED
253446d1b5SJeremy L Thompson      env:
263446d1b5SJeremy L Thompson        CC: ${{ matrix.compiler }}
276c0547c1SJeremy L Thompson        FC: gfortran-11
28fb651866SJed Brown        AFLAGS: -fsanitize=address -fsanitize=leak
29fb651866SJed Brown        ASAN: ${{ matrix.asan }}
303446d1b5SJeremy L Thompson      run: |
3178a9fcb6SJeremy L Thompson        make -v
323446d1b5SJeremy L Thompson        make info
333446d1b5SJeremy L Thompson        make -j2
343446d1b5SJeremy L Thompson        PROVE_OPTS=-v make prove -j2
35