Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 5 commits into from
Jul 19, 2024
Merged
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
80 changes: 80 additions & 0 deletions .github/workflows/eicshell.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@

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
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


Loading