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

eic-shell CI job: Compile EICrecon #323

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

name: Test JANA2 against eic-shell/EICrecon
name: eic-shell

on:
push:
Expand All @@ -9,7 +9,7 @@ on:

jobs:
jana2_eicshell:
name: Build JANA2 on eic-shell
name: eic-shell
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -78,3 +78,35 @@ jobs:
$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 ---"
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 ---"
eicrecon sim_e_1GeV_20GeV_craterlake.edm4hep.root

Loading