Skip to content

Commit

Permalink
Added Hypre installation in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
kvrigor committed Aug 23, 2024
1 parent 1ef6b2b commit 62827a5
Showing 1 changed file with 29 additions and 3 deletions.
32 changes: 29 additions & 3 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: eCLM CI Test
name: TSMP2 Build

# Controls when the action will run.
on: [push, pull_request]
Expand All @@ -25,7 +25,9 @@ jobs:
eCLM_SRC: eCLM
PARFLOW_SRC: parflow
PARFLOW_TAG: v3.12.0
HYPRE_TAG: 2.26.0
CMAKE_BUILD_PARALLEL_LEVEL: 4
CMAKE_PREFIX_PATH: $HOME/.local

steps:
- uses: actions/checkout@v4
Expand All @@ -45,12 +47,14 @@ jobs:
cache-name: cache-oasis
with:
path: "~/$OASIS_SRC"
key: cache-${{ matrix.config.name }}
key: cache-${{ matrix.config.name }}-${{ env.OASIS_TAG }}

- if: steps.cache-oasis.outputs.cache-hit != 'true'
name: Download OASIS3-MCT ${{ env.OASIS_TAG }}
run: |
git clone -b $OASIS_TAG https://icg4geo.icg.kfa-juelich.de/ExternalReposPublic/oasis3-mct.git
cd $OASIS_SRC
echo "OASIS3-MCT version: $(git describe --tags --always)"
- name: Cache eCLM
uses: actions/cache@v4
Expand All @@ -65,6 +69,8 @@ jobs:
name: Download eCLM
run: |
git clone https://github.com/HPSCTerrSys/eCLM.git
cd eCLM
echo "eCLM version: $(git describe --tags --always)"
- name: Cache ParFlow ${{ env.PARFLOW_TAG }}
uses: actions/cache@v4
Expand All @@ -73,12 +79,32 @@ jobs:
cache-name: cache-parflow
with:
path: "~/$PARFLOW_SRC"
key: cache-${{ matrix.config.name }}
key: cache-${{ matrix.config.name }}-${{ env.PARFLOW_TAG }}

- if: steps.cache-parflow.outputs.cache-hit != 'true'
name: Download ParFlow ${{ env.PARFLOW_TAG }}
run: |
git clone -b $PARFLOW_TAG https://github.com/parflow/parflow.git
cd parflow
echo "ParFlow version: $(git describe --tags --always)"
- name: Cache Hypre ${{ env.HYPRE_TAG }}
uses: actions/cache@v4
id: cache-hypre
env:
cache-name: cache-hypre
with:
path: "~/$CMAKE_PREFIX_PATH"
key: cache-${{ matrix.config.name }}-${{ env.HYPRE_TAG }}

- if: steps.cache-hypre.outputs.cache-hit != 'true'
name: Install Hypre ${{ env.HYPRE_TAG }}
run: |
wget https://github.com/hypre-space/hypre/archive/v${HYPRE_TAG}.tar.gz
tar xf v${HYPRE_TAG}.tar.gz
cd hypre-${HYPRE_TAG}/src
./configure --prefix=$CMAKE_PREFIX_PATH
make -j4 install
- name: Configure TSMP2
run: |
Expand Down

0 comments on commit 62827a5

Please sign in to comment.