Skip to content

refactor spack workflow #80

refactor spack workflow

refactor spack workflow #80

Workflow file for this run

name: spack
on: [ push, workflow_dispatch ]
jobs:
job_one:
runs-on: ubuntu-latest
steps:
- name: spack cache
id: spack-cache
uses: actions/cache@v3
with:
key: spack-cache-sandlot-5
path: |
./spack
~/.spack
- if: ${{ steps.spack-cache.outputs.cache-hit != 'true' }}
name: grab spack
uses: actions/checkout@v4
with:
repository: 'spack/spack'
ref: 'v0.21.1'
path: './spack'
#
# git clone --depth=1 --single-branch --branch v0.21.1 https://github.com/spack/spack.git
#
- if: ${{ steps.spack-cache.outputs.cache-hit != 'true' }}
name: spack install
run: |
. ./spack/share/spack/setup-env.sh
spack config add config:install_tree:padded_length:128
spack compiler find
spack install --no-cache [email protected]
spack compiler add $(spack location -i [email protected])
spack install --no-cache cmake %[email protected]
spack install --no-cache hdf5+fortran+mpi %[email protected]