Skip to content

Update VERSION: 2.4.2 #46

Update VERSION: 2.4.2

Update VERSION: 2.4.2 #46

Workflow file for this run

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