From 5bf3ec945d5ea365ebdba294d384f1620e05e95e Mon Sep 17 00:00:00 2001 From: Alex Richert Date: Tue, 24 Oct 2023 18:48:15 -0700 Subject: [PATCH] fix spack ci --- .github/workflows/Spack.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/Spack.yml b/.github/workflows/Spack.yml index 1442ad4..d1b3219 100644 --- a/.github/workflows/Spack.yml +++ b/.github/workflows/Spack.yml @@ -58,7 +58,8 @@ jobs: # Run 'spack load' and check that key build options were respected spack load sp if [ "${{ matrix.variants }}" =~ "+shared" ]; then suffix="so" ; else suffix="a"; fi - ls ${SP_LIB${precision}} | grep -cE "/libsp_${precision}\."$suffix'$' + libvar=SP_LIB${precision} + ls ${!libvar} | grep -cE "/libsp_${precision}\."$suffix'$' - name: Upload test results uses: actions/upload-artifact@v3