Skip to content

Commit 2afe125

Browse files
committed
fix github workflow
1 parent f1d329b commit 2afe125

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/single-platform.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ jobs:
2424
- name: Install OpenMPI
2525
run: |
2626
spack install -j 4 openmpi
27-
eval "$(spack load --sh openmpi)"
28-
which mpicc
2927
3028
- name: Configure and Make GCC_MPI
3129
run: |
30+
. ./spack/share/spack/setup-env.sh # setup spack shell env
31+
eval "$(spack load --sh openmpi)" # load into current shell
3232
sed -E -i \
3333
-e 's/^(ENABLE_MPI[[:space:]]*\?=[[:space:]]*).*/\1true/' \
3434
-e 's/^(ENABLE_OPENMP[[:space:]]*\?=[[:space:]]*).*/\1false/' \

0 commit comments

Comments
 (0)