Skip to content

Commit

Permalink
Merge pull request #8 from GEOS-ESM/feature/mathomp4/update-ci-750-ocean
Browse files Browse the repository at this point in the history
Update CircleCI to use Baselibs 7.5.0
  • Loading branch information
mathomp4 authored Jul 12, 2022
2 parents 5214e2d + be969fe commit 2ee1c08
Showing 1 changed file with 14 additions and 24 deletions.
38 changes: 14 additions & 24 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,25 @@
version: 2.1

# Anchors to prevent forgetting to update a version
baselibs_version: &baselibs_version v7.5.0
bcs_version: &bcs_version v10.22.3

orbs:
circleci-tools: geos-esm/circleci-tools@0.11.0
ci: geos-esm/circleci-tools@1

workflows:
build-test:
jobs:
- build-GEOSgcm:
# Build GEOSgcm
- ci/build:
name: build-GEOSgcm-on-<< matrix.compiler >>
context:
- docker-hub-creds
matrix:
parameters:
compiler: [gfortran, ifort]
context:
- docker-hub-creds

jobs:
build-GEOSgcm:
parameters:
compiler:
type: string
executor: circleci-tools/<< parameters.compiler >>
working_directory: /root/project
steps:
- circleci-tools/checkout_fixture
- circleci-tools/mepoclone
- circleci-tools/mepodevelop
- circleci-tools/checkout_if_exists
- circleci-tools/cmake:
compiler: << parameters.compiler >>
- circleci-tools/buildinstall
- circleci-tools/compress_artifacts
- store_artifacts:
path: /logfiles

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

0 comments on commit 2ee1c08

Please sign in to comment.