Skip to content

Cut release 2.3.1

Cut release 2.3.1 #32

Workflow file for this run

name: eic-shell
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
jana2_eicshell:
name: eic-shell
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cvmfs-contrib/github-action-cvmfs@v2
- name: cmake
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
- name: make install
uses: eic/run-cvmfs-osg-eic-shell@main
with:
platform-release: "jug_xl:nightly"
run: |
cd $GITHUB_WORKSPACE/build
make -j4 install
- name: Run JTest plugin with 100 events
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
- name: Run jana-unit-tests
uses: eic/run-cvmfs-osg-eic-shell@main
with:
platform-release: "jug_xl:nightly"
run: |
$GITHUB_WORKSPACE/jana_home/bin/jana-unit-tests
- name: Run TimesliceExample with simple (physics event) topology
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
- name: Run TimesliceExample with complex (timeslice) topology
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 timeslices.root
- name: Compile EICrecon
uses: eic/run-cvmfs-osg-eic-shell@main
with:
platform-release: "jug_xl:nightly"
run: |
echo "--- Compiling EICrecon ---"
export JANA_HOME=$GITHUB_WORKSPACE/jana_home
git clone https://github.com/eic/EICrecon
cd EICrecon
cmake -S . -B build -DJANA_DIR=$GITHUB_WORKSPACE/jana_home/lib/cmake/JANA
cmake --build build --target install -- -j8
- name: Generate EICrecon input data
uses: eic/run-cvmfs-osg-eic-shell@main
with:
platform-release: "jug_xl:nightly"
setup: "/opt/detector/epic-main/bin/thisepic.sh"
run: |
echo "--- Generating EICrecon input data ---"
npsim --compactFile ${DETECTOR_PATH}/${DETECTOR}_craterlake.xml \
-G --random.seed 1 --gun.particle "e-" --gun.momentumMin "1*GeV" \
--gun.momentumMax "20*GeV" --gun.distribution "uniform" -N 20 \
--outputFile sim_e_1GeV_20GeV_craterlake.edm4hep.root -v WARNING
- name: Run EICrecon
uses: eic/run-cvmfs-osg-eic-shell@main
with:
platform-release: "jug_xl:nightly"
setup: "/opt/detector/epic-main/bin/thisepic.sh"
run: |
echo "--- Running EICrecon ---"
export JANA_HOME=$GITHUB_WORKSPACE/jana_home
export LD_LIBRARY_PATH=$JANA_HOME/lib:$LD_LIBRARY_PATH
export JANA_PLUGIN_PATH=$GITHUB_WORKSPACE/EICrecon/lib/EICrecon/plugins
EICrecon/bin/eicrecon sim_e_1GeV_20GeV_craterlake.edm4hep.root