diff --git a/.github/workflows/eicshell.yml b/.github/workflows/eicshell.yml new file mode 100644 index 000000000..d5d88fc31 --- /dev/null +++ b/.github/workflows/eicshell.yml @@ -0,0 +1,57 @@ + +name: Test JANA2 against eic-shell/EICrecon + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + jana2_eicshell: + name: Build JANA2 on eic-shell + runs-on: ubuntu-latest + container: + image: eicweb/jug_xl:nightly + + steps: + - uses: actions/checkout@v4 + - name: cmake configure + run: | + mkdir -p $GITHUB_WORKSPACE/build + cd $GITHUB_WORKSPACE/build + cmake .. \ + -DCMAKE_INSTALL_PREFIX=$GITHUB_WORKSPACE/jana_home \ + -DUSE_PYTHON=ON \ + -DUSE_ROOT=ON \ + -DUSE_PODIO=ON \ + -DUSE_XERCES=ON \ + -DUSE_ZEROMQ=ON + - name: cmake build + run: | + cd $GITHUB_WORKSPACE/build + make -j4 + - name: cmake install + run: | + cd $GITHUB_WORKSPACE/build + make install + - name: JTest + run: | + echo "--- Running JTest plugin -----------------------" + export JANA_PLUGIN_PATH=$GITHUB_WORKSPACE/jana_home/plugins + $GITHUB_WORKSPACE/jana_home/bin/jana -PPLUGINS=JTest -Pjana:nevents=100 + - name: jana-unit-tests + run: | + echo "--- Running jana-unit-tests ------------------------------" + export JANA_PLUGIN_PATH=$GITHUB_WORKSPACE/jana_home/plugins + $GITHUB_WORKSPACE/jana_home/bin/jana-unit-tests + - name: TimesliceExample with simple (physics event) topology + 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: TimesliceExample with complex (timeslice) topology + 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 + +