From 6d83fa45fefedc60c223e82c823e1b5f4f3fac85 Mon Sep 17 00:00:00 2001 From: Devin Kees <6895754+djkees@users.noreply.github.com> Date: Sun, 15 Nov 2026 10:56:44 -0700 Subject: [PATCH] Pin GFE to v1.31.0 in CI and develop.sh Co-Authored-By: Claude Sonnet 5.5 --- .github/workflows/basic_build.yml | 4 ++++ CONTRIBUTING.md | 6 ++++-- scripts/develop.sh | 4 +++- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/basic_build.yml b/.github/workflows/basic_build.yml index 18d06e7..66beac8 100644 --- a/.github/workflows/basic_build.yml +++ b/.github/workflows/basic_build.yml @@ -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 }}) @@ -413,6 +416,7 @@ jobs: uses: actions/checkout@v7 with: repository: Goddard-Fortran-Ecosystem/GFE + ref: ${{ env.GFE_TAG }} path: extern/gfe submodules: true diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 93663c4..c45a40a 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -140,7 +140,7 @@ 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 \ @@ -148,7 +148,9 @@ CEA uses pFUnit (part of the Goddard Fortran Ecosystem) for unit testing. Tests -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): diff --git a/scripts/develop.sh b/scripts/develop.sh index 6c7cf8b..ed2f68a 100755 --- a/scripts/develop.sh +++ b/scripts/develop.sh @@ -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}" \