Skip to content

Commit 03ca6b0

Browse files
committed
ci(spack): source setup-env.sh before spack load in smoke test
spack load uses shell functions (it modifies the calling shell's env) which require sourcing share/spack/setup-env.sh. The install step works without it because spack install is a plain executable. setup-spack puts spack on PATH but each GH Actions step starts a fresh shell, so shell-function support has to be reactivated per-step that needs it.
1 parent 0c6c218 commit 03ca6b0

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.github/workflows/spack.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ jobs:
2626

2727
- name: Smoke test
2828
run: |
29+
source spack/share/spack/setup-env.sh
2930
spack load mfc
3031
prefix="$(spack location -i mfc)"
3132
echo "MFC prefix: $prefix"

0 commit comments

Comments
 (0)