Skip to content

CI updates

CI updates #56

Workflow file for this run

name: Build and Test
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
env:
FC: gfortran
CC: gcc
steps:
- name: checkout-pfunit
uses: actions/checkout@v2
with:
repository: Goddard-Fortran-Ecosystem/pFUnit
path: pfunit
- name: cache-pfunit
id: cache-pfunit
uses: actions/cache@v2
with:
path: ~/pfunit
key: pfunit-${{ runner.os }}-gcc-1
- name: build-pfunit
if: steps.cache-pfunit.outputs.cache-hit != 'true'
run: |
cmake -B pfunit/build -S pfunit -DSKIP_MPI=YES -DSKIP_ESMF=YES -DSKIP_FHAMCREST=YES -DCMAKE_INSTALL_PREFIX=~/pfunit
cmake --build pfunit/build --verbose
cmake --install pfunit/build
- name: checkout
uses: actions/checkout@v2
- name: build
run: |
cmake -B build -DENABLE_TESTS=ON -DCMAKE_PREFIX_PATH="~/pfunit"
cmake --build build --parallel 2 --verbose
- name: test
run: |
cmake --build build --target test --verbose