Skip to content

Commit

Permalink
u
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderRichert-NOAA committed Sep 25, 2023
1 parent e6b7f83 commit eaf033d
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/Spack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,22 @@ jobs:

- name: spack-build-and-test
run: |
echo AJWR: ${{ steps.cache.outputs.cache-hit == 'true' }}
if [ ${{ steps.cache.outputs.cache-hit }} != 'true' ] ; then
git clone -c feature.manyFiles=true https://github.com/spack/spack
. spack/share/spack/setup-env.sh
spack env create grib-util-env
spack env activate grib-util-env
cp $GITHUB_WORKSPACE/grib-util/spack/package.py $SPACK_ROOT/var/spack/repos/builtin/packages/grib-util/package.py
mv $GITHUB_WORKSPACE/grib-util $SPACK_ENV/grib-util
spack develop --no-clone grib-util@develop
spack add grib-util@develop%gcc@11 ${{ matrix.openmp }} ^bacio@2.5.0 ^w3emc@2.10.0 ^g2@3.4.6 ^g2c@develop ^ip@4.2.0 ^sp@2.4.0
spack external find cmake gmake
spack concretize
spack mirror add spack-build-cache ~/spack-build-cache
# Run installation and run CTest suite
spack install --fail-fast --keep-stage --test root
# Run 'spack load' to check for obvious errors in setup_run_environment
spack load grib-util
if [ "${{ steps.cache.outputs.cache-hit == 'true' }}" == "false" ] ; then
spack buildcache push ~/spack-build-cache bacio w3emc g2 g2c ip sp
fi
Expand Down

0 comments on commit eaf033d

Please sign in to comment.