From fcf3d2edc14cf2c835b0aaf06c7c4f9f2396e12f Mon Sep 17 00:00:00 2001 From: Matthew Thompson Date: Fri, 26 Jan 2024 08:13:13 -0500 Subject: [PATCH] Update CircleCI to use Orb v2 This PR updates the CircleCI config the v2 orb. This has updated needed for changes in GEOSgcm_App and Baselibs Note that we keep commented the explicit anchors in case needed. --- .circleci/config.yml | 44 +++++++++++++++++++++++++++++++++++++------- 1 file changed, 37 insertions(+), 7 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index ed8065e..5c89ea6 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,14 +1,14 @@ version: 2.1 -# Anchors to prevent forgetting to update a version -baselibs_version: &baselibs_version v7.7.0 -bcs_version: &bcs_version v10.23.0 +# Anchors in case we need to override the defaults from the orb +#baselibs_version: &baselibs_version v7.17.0 +#bcs_version: &bcs_version v11.4.0 orbs: - ci: geos-esm/circleci-tools@1 + ci: geos-esm/circleci-tools@2 workflows: - build-and-test: + build-test: jobs: # Build GEOSgcm - ci/build: @@ -18,8 +18,38 @@ workflows: matrix: parameters: compiler: [gfortran, ifort] - baselibs_version: *baselibs_version + #baselibs_version: *baselibs_version repo: GEOSgcm checkout_fixture: true mepodevelop: true - persist_workspace: false # Needs to be true to run fv3/gcm experiment, costs extra + persist_workspace: true # Needs to be true to run fv3/gcm experiment, costs extra + + # Run AMIP GCM (1 hour, no ExtData) + - ci/run_gcm: + name: run-GCM-on-<< matrix.compiler >> + context: + - docker-hub-creds + matrix: + parameters: + compiler: [gfortran, ifort] + requires: + - build-GEOSgcm-on-<< matrix.compiler >> + repo: GEOSgcm + #baselibs_version: *baselibs_version + #bcs_version: *bcs_version + + # Run Coupled GCM (1 hour, no ExtData) + - ci/run_gcm: + name: run-coupled-GCM-on-<< matrix.compiler >> + context: + - docker-hub-creds + matrix: + parameters: + compiler: [gfortran, ifort] + requires: + - build-GEOSgcm-on-<< matrix.compiler >> + repo: GEOSgcm + #baselibs_version: *baselibs_version + #bcs_version: *bcs_version + gcm_ocean_type: MOM6 + change_layout: false