From 28231a2001a4863694a2d7197f84b268b43b45de Mon Sep 17 00:00:00 2001 From: Seth R Johnson Date: Tue, 24 Sep 2024 11:29:32 -0400 Subject: [PATCH] Re-enable examples and save ld path --- .github/workflows/build-spack.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build-spack.yml b/.github/workflows/build-spack.yml index 2ecbe4f05b..4ebf25fa20 100644 --- a/.github/workflows/build-spack.yml +++ b/.github/workflows/build-spack.yml @@ -138,6 +138,7 @@ jobs: .. ninja install echo "CMAKE_PREFIX_PATH=${CMAKE_PREFIX_PATH}:${VECGEOM_PREFIX_PATH}" >> $GITHUB_ENV + echo "LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${VECGEOM_PREFIX_PATH}/lib" >> $GITHUB_ENV - name: Configure Celeritas env: CLANG_TIDY: "clang-tidy-15" @@ -146,18 +147,22 @@ jobs: cmake --preset=${CMAKE_PRESET} --log-level=VERBOSE - name: Build all working-directory: build - continue-on-error: ${{matrix.special == 'clang-tidy' || matrix.special == 'vgsurf'}} + continue-on-error: ${{matrix.special == 'clang-tidy'}} run: | ninja -v -k0 - name: Regenerate ROOT test data - if: ${{matrix.geant == '11.0'}} + if: ${{ + matrix.geant == '11.0' + && matrix.special != 'minimal' + && matrix.special != 'vgsurf' + }} working-directory: build run: | ninja -v -k0 update-root-test-data - name: Run tests id: test working-directory: build - continue-on-error: ${{fromJSON(matrix.geant) < 11 || matrix.special == 'vgsurf'}} # TODO: fix failing tests + continue-on-error: ${{fromJSON(matrix.geant) < 11}} run: | if [ "${{matrix.geant}}" == "11.0" ]; then # Note this is ignored for geant4, float, clhep @@ -180,7 +185,6 @@ jobs: if: >- ${{ matrix.special != 'asanlite' - && matrix.special != 'vgsurf' }} run: | . ${SPACK_VIEW}/rc @@ -196,13 +200,12 @@ jobs: celer-sim celer-g4; do test -x "bin/${exe}" done - ldd ./bin/celer-sim + ./bin/celer-sim --version - name: Build examples # TODO: ASAN requires flags downstream if: >- ${{ matrix.special != 'asanlite' - && matrix.special != 'vgsurf' }} run: | . ${SPACK_VIEW}/rc