Skip to content

Commit

Permalink
Re-enable examples and save ld path
Browse files Browse the repository at this point in the history
  • Loading branch information
sethrj committed Sep 24, 2024
1 parent 966d23c commit 28231a2
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/build-spack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
Expand All @@ -180,7 +185,6 @@ jobs:
if: >-
${{
matrix.special != 'asanlite'
&& matrix.special != 'vgsurf'
}}
run: |
. ${SPACK_VIEW}/rc
Expand All @@ -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
Expand Down

0 comments on commit 28231a2

Please sign in to comment.