Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 20 additions & 29 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,37 +12,28 @@ on:

jobs:
build-and-test:
runs-on: self-hosted
container:
image: registry.cern.ch/ship/gha-runner:latest
volumes:
- /cvmfs/sft.cern.ch:/cvmfs/sft.cern.ch
- /cvmfs/ship-nightlies.cern.ch:/cvmfs/ship-nightlies.cern.ch
- /cvmfs/geant4.cern.ch:/cvmfs/geant4.cern.ch

env:
WORK_DIR: /cvmfs/ship-nightlies.cern.ch/GeoModel/sw/

runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- uses: actions/checkout@v6

- name: Configure
run: |
source /cvmfs/sft.cern.ch/lcg/views/LCG_109/x86_64-el9-gcc15-opt/setup.sh
source /cvmfs/ship-nightlies.cern.ch/GeoModel/sw/slc9_x86-64/GeoModel/6.24.0-local2/etc/profile.d/init.sh
cmake -S . -B build \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_PREFIX_PATH="/cvmfs/ship-nightlies.cern.ch/GeoModel/sw/slc9_x86-64/GeoModel/6.24.0-local2;/cvmfs/sft.cern.ch/lcg/releases/qt6/6.8.3-4d4f0/x86_64-el9-gcc15-opt"
- uses: prefix-dev/setup-pixi@v0.9.6
with:
cache: true

- name: Build
run: |
source /cvmfs/sft.cern.ch/lcg/views/LCG_109/x86_64-el9-gcc15-opt/setup.sh
source /cvmfs/ship-nightlies.cern.ch/GeoModel/sw/slc9_x86-64/GeoModel/6.24.0-local2/etc/profile.d/init.sh
cmake --build build -j$(nproc)
- name: Build and test
run: pixi run test

- name: Test
- name: GDB backtrace of build_geometry on failure
if: failure()
continue-on-error: true
run: |
source /cvmfs/sft.cern.ch/lcg/views/LCG_109/x86_64-el9-gcc15-opt/setup.sh
source /cvmfs/ship-nightlies.cern.ch/GeoModel/sw/slc9_x86-64/GeoModel/6.24.0-local2/etc/profile.d/init.sh
ctest --test-dir build --output-on-failure
pixi run -- bash -c '
cd build
rm -f ship_test_overlap.db
gdb --batch \
--ex "set pagination off" \
--ex "set print frame-arguments all" \
--ex run \
--ex "thread apply all bt full" \
--args apps/build_geometry ship_test_overlap.db
'
Loading
Loading