Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/basic_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
push:
pull_request:
workflow_dispatch:
env:
# GFE release used for pFUnit. Keep in sync with GFE_TAG in scripts/develop.sh.
GFE_TAG: v1.31.0
jobs:
build:
name: Build (${{ matrix.label }})
Expand Down Expand Up @@ -413,6 +416,7 @@ jobs:
uses: actions/checkout@v7
with:
repository: Goddard-Fortran-Ecosystem/GFE
ref: ${{ env.GFE_TAG }}
path: extern/gfe
submodules: true

Expand Down
6 changes: 4 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,15 +140,17 @@ CEA uses pFUnit (part of the Goddard Fortran Ecosystem) for unit testing. Tests
1. Clone GFE (which vendors pFUnit) into `extern/gfe`, then build and install
it so CMake's `find_package(PFUNIT)` can find it:
```bash
git clone https://github.com/Goddard-Fortran-Ecosystem/GFE extern/gfe
git clone --branch v1.31.0 https://github.com/Goddard-Fortran-Ecosystem/GFE extern/gfe
cd extern/gfe && git submodule update --init && cd ../..
cmake -S extern/gfe -B build-dev/extern/gfe -G "Unix Makefiles" \
-DCMAKE_CXX_COMPILER=g++ -DCMAKE_Fortran_COMPILER=gfortran \
-DCMAKE_INSTALL_PREFIX=build-dev/install -DCMAKE_BUILD_TYPE=Release \
-DSKIP_MPI=YES -DSKIP_OPENMP=YES -DSKIP_FHAMCREST=YES -DSKIP_ESMF=YES -DSKIP_ROBUST=YES
cmake --build build-dev/extern/gfe --target install
```
`scripts/develop.sh` automates these steps.
`scripts/develop.sh` automates these steps. The GFE release is pinned by
`GFE_TAG` in `scripts/develop.sh` and in `.github/workflows/basic_build.yml`;
update both together.

2. Configure CEA against that install and build (the `dev*` presets enable
`CEA_BUILD_TESTING` by default):
Expand Down
4 changes: 3 additions & 1 deletion scripts/develop.sh
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,10 @@ fi
if [ "$BUILD_GFE" = true ]; then
GFE="${EXTERN}/gfe"
GFE_BUILD="${BUILD}/extern/gfe"
# GFE release used for pFUnit. Keep in sync with GFE_TAG in .github/workflows/basic_build.yml.
GFE_TAG="${GFE_TAG:-v1.31.0}"
if [[ ! -d "${GFE}" ]]; then
git clone https://github.com/Goddard-Fortran-Ecosystem/GFE "${GFE}"
git clone --branch "${GFE_TAG}" https://github.com/Goddard-Fortran-Ecosystem/GFE "${GFE}"
(cd "${GFE}" && git submodule update --init)
fi
cmake -S "${GFE}" -B "${GFE_BUILD}" -G "${GENERATOR}" \
Expand Down
Loading