Skip to content

Commit a5d05f4

Browse files
committed
use spack action
1 parent df0964d commit a5d05f4

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

.github/workflows/spack.yml

+10-10
Original file line numberDiff line numberDiff line change
@@ -47,29 +47,29 @@ jobs:
4747
if: always()
4848
run: |
4949
sudo apt-get update
50-
sudo apt-get install -yq ccache bzip2 ca-certificates g++ gcc gfortran git gzip lsb-release patch python3 tar unzip xz-utils zstd
50+
sudo apt-get install -yq ccache
5151
5252
- name: Get ccache config dir
5353
if: always()
5454
run: ccache --show-config
5555

56-
- name: Clone spack
57-
if: always()
58-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
56+
- name: Set up Spack
57+
uses: spack/setup-spack@v2
5958
with:
60-
repository: spack/spack
59+
ref: releases/v0.23
60+
buildcache: true
61+
color: true
6162
path: spack
6263

63-
- name: Install
64-
if: always()
64+
- name: Install PyNucleus
65+
shell: spack-bash {0}
6566
run: |
66-
source spack/share/spack/setup-env.sh
6767
spack config add config:ccache:true
6868
spack env create pynucleus
6969
spack env activate pynucleus
70-
spack add py-pynucleus
70+
spack add py-pynucleus ^openmpi
7171
spack concretize
72-
spack install
72+
spack install --show-log-on-error
7373
7474
- name: Remove ccache cache
7575
if: ${{ steps.ccache-restore.outputs.cache-hit }}

0 commit comments

Comments
 (0)