Skip to content

Commit fa7b5b8

Browse files
Fix using git branch versions of MPI
1 parent e960129 commit fa7b5b8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ services:
88
ARG OMPI_VERSION
99
ENV OMPI_VERSION=$${OMPI_VERSION}
1010
CMD cp /configs/spack.yaml . && \
11+
export OMPI_VERSION=$( [[ "$OMPI_VERSION" == git.* ]] && echo "${OMPI_VERSION}=main" || echo "${OMPI_VERSION}" ) \
1112
spack -e . add openmpi@$${OMPI_VERSION} && \
1213
spack -e . containerize >/configs/spack.Dockerfile
1314
args:

0 commit comments

Comments
 (0)