Skip to content

Commit 7dd6b88

Browse files
committed
update spack setup to use the spack official action
1 parent 4231d01 commit 7dd6b88

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

.github/workflows/spack-container-build.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,20 @@ jobs:
2020
- name: Checkout repository
2121
uses: actions/checkout@v4
2222

23-
- name: Set up Python
24-
uses: actions/setup-python@v5
23+
- name: Setup Spack
24+
uses: spack/setup-spack@v2
2525
with:
26-
python-version: '3.10'
27-
28-
- name: Install Spack
29-
run: |
30-
git clone --depth 1 --branch v0.23.0 https://github.com/spack/spack.git
31-
echo "${GITHUB_WORKSPACE}/spack/bin" >> $GITHUB_PATH
26+
ref: release/v0.22
27+
buildcache: true
28+
color: true
29+
path: spack
3230

3331
- name: Generate Dockerfile with Spack
32+
shell: spack-bash {0}
33+
working-directory: spack-env
3434
run: |
35-
cd spack-env
36-
../spack/bin/spack containerize > Dockerfile
35+
spack env activate .
36+
spack containerize > Dockerfile
3737
3838
# Update the Dockerfile for human review for debugging if necessary
3939
- name: Upload generated Dockerfile

0 commit comments

Comments
 (0)