Skip to content

Commit

Permalink
Merge pull request #124 from NOAA-EMC/AlexanderRichert-NOAA-patch-2
Browse files Browse the repository at this point in the history
Provide ctest output in spack CI
  • Loading branch information
AlexanderRichert-NOAA authored Sep 27, 2023
2 parents 549b02f + e45e424 commit 2d9519a
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/Spack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,24 @@ jobs:
spack concretize
# Run installation and run CTest suite
spack install --verbose --fail-fast --test root
# Print test results
cat $(spack location -i sp)/.spack/install-time-test-log.txt
cat $(spack location -i ip)/.spack/install-time-test-log.txt
if [ ${{ matrix.precision }} == "d" ]; then
cat $(spack location -i grib-util)/.spack/install-time-test-log.txt
fi
# Run 'spack load' and check that key build options were respected
spack load sp
if [ ${{ matrix.sharedlibs }} == "+shared" ]; then suffix="so" ; else suffix="a"; fi
ls ${SP_LIB${{ matrix.precision }}} | grep -cE '/libsp_${{ matrix.precision }}\.'$suffix'$'
- name: Upload test results
uses: actions/upload-artifact@v3
if: ${{ failure() }}
with:
name: spackci-ctest-output-${{ matrix.os }}-${{ matrix.openmp }}-${{ matrix.sharedlibs }}-${{ matrix.pic }}-${{ matrix.precision }}
path: ${{ github.workspace }}/*/spack-build-*/Testing/Temporary/LastTest.log

# This job validates the Spack recipe by making sure each cmake build option is represented
recipe-check:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 2d9519a

Please sign in to comment.