xref: /libCEED/.github/workflows/c-fortran-test-linux-osx.yml (revision dcd9f19c403551effd883234b856bcd9f61ce4a8)
1dfb8ed23Sjeremyltname: C/Fortran
23446d1b5SJeremy L Thompson
33446d1b5SJeremy L Thompsonon:
43446d1b5SJeremy L Thompson  push:
5*dcd9f19cSJeremy L Thompson    branches:
6*dcd9f19cSJeremy L Thompson      - main
7*dcd9f19cSJeremy 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]
153446d1b5SJeremy L Thompson
163446d1b5SJeremy L Thompson    runs-on: ${{ matrix.os }}
173446d1b5SJeremy L Thompson
183446d1b5SJeremy L Thompson    steps:
193446d1b5SJeremy L Thompson    - name: Environment setup
200adbbf50SJeremy L Thompson      uses: actions/checkout@v3
213446d1b5SJeremy L Thompson    - name: Build and test libCEED
223446d1b5SJeremy L Thompson      env:
233446d1b5SJeremy L Thompson        CC: ${{ matrix.compiler }}
246c0547c1SJeremy L Thompson        FC: gfortran-11
253446d1b5SJeremy L Thompson      run: |
2678a9fcb6SJeremy L Thompson        make -v
273446d1b5SJeremy L Thompson        make info
283446d1b5SJeremy L Thompson        make -j2
293446d1b5SJeremy L Thompson        PROVE_OPTS=-v make prove -j2
30