From f4b8db872289bf6881b5bb6564ca8f43752f4794 Mon Sep 17 00:00:00 2001 From: "Rutherford, Cameron" Date: Thu, 19 Sep 2024 19:39:43 -0400 Subject: [PATCH] Load MPI through printed variables from spack. --- .github/workflows/spack_build.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/spack_build.yml b/.github/workflows/spack_build.yml index 79cfa124..f10ef4c1 100644 --- a/.github/workflows/spack_build.yml +++ b/.github/workflows/spack_build.yml @@ -116,7 +116,7 @@ jobs: # Once we move submodule deps into spack, we can do some more builds # Also need to change build script to use spack from base image submodules: true - + - name: Clone Spack run: | # TODO: Move back to spack@develop once patch in in develop @@ -178,7 +178,9 @@ jobs: - name: Test Build run: | # Not all pipelines have `+mpi`, so this command might fail - spack -e . load --sh openmpi || true + # Command also only prints shell commands, need to source + spack -e . load --sh openmpi > env.txt || [ rm env.txt || true ] + source env.txt || true cd $(spack -e . location --build-dir hiop@develop) ctest -VV