Skip to content

CI: Build and test JANA inside eic-shell #9

CI: Build and test JANA inside eic-shell

CI: Build and test JANA inside eic-shell #9

Workflow file for this run

name: Test JANA2 against eic-shell/EICrecon
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
eicshell_build_jana2:
name: Build and install JANA2 on eic-shell
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cvmfs-contrib/github-action-cvmfs@v4
- uses: eic/run-cvmfs-osg-eic-shell@main
with:
platform-release: "jug_xl:nightly"
run: |
mkdir -p $GITHUB_WORKSPACE/build
cd $GITHUB_WORKSPACE/build
cmake .. \
-DCMAKE_INSTALL_PREFIX=$GITHUB_WORKSPACE/jana_home \
-DCMAKE_CXX_STANDARD=20 \
-DUSE_PYTHON=ON \
-DUSE_ROOT=ON \
-DUSE_PODIO=ON \
-DUSE_XERCES=ON \
-DUSE_ZEROMQ=ON \
-DXercesC_DIR=/opt/local
make -j4 install
eicshell_run_jtest:
name: Run JTest on eic-shell
runs-on: ubuntu-latest
needs: eicshell_build_jana2
steps:
- uses: eic/run-cvmfs-osg-eic-shell@main
with:
platform-release: "jug_xl:nightly"
run: |
$GITHUB_WORKSPACE/jana_home/bin/jana \
-Pjana:plugin_path=$GITHUB_WORKSPACE/jana_home/plugins \
-Pplugins=JTest \
-Pjana:nevents=100
eicshell_run_jana_unit_tests:
name: Run jana-unit-tests on eic-shell
runs-on: ubuntu-latest
needs: eicshell_build_jana2
steps:
- uses: eic/run-cvmfs-osg-eic-shell@main
with:
platform-release: "jug_xl:nightly"
run: |
$GITHUB_WORKSPACE/jana_home/bin/jana-unit-tests
eicshell_run_timeslice_example_simple:
name: Run TimesliceExample with simple (physics event) topology on eic-shell
runs-on: ubuntu-latest
needs: eicshell_build_jana2
steps:
- uses: eic/run-cvmfs-osg-eic-shell@main
with:
platform-release: "jug_xl:nightly"
run: |
echo "--- Running TimesliceExample with simple topology ---"
$GITHUB_WORKSPACE/jana_home/bin/jana \
-Pjana:plugin_path=$GITHUB_WORKSPACE/jana_home/plugins \
-Pplugins=TimesliceExample \
-Pjana:nevents=100 \
events.root
eicshell_run_timeslice_example_complex:
name: Run TimesliceExample with complex (timeslice) topology
runs-on: ubuntu-latest
needs: eicshell_build_jana2
steps:
- uses: eic/run-cvmfs-osg-eic-shell@main
with:
platform-release: "jug_xl:nightly"
run: |
echo "--- Running TimesliceExample with complex topology ---"
$GITHUB_WORKSPACE/jana_home/bin/jana \
-Pjana:plugin_path=$GITHUB_WORKSPACE/jana_home/plugins \
-Pplugins=TimesliceExample \
-Pjana:nevents=100 \
timeslices.root