From 26d2ac92c0b8ccb136c55861f392d721b4982668 Mon Sep 17 00:00:00 2001 From: Nathan Brei Date: Fri, 19 Jul 2024 14:25:54 -0400 Subject: [PATCH 1/3] eic-shell CI job: Compile EICrecon --- .github/workflows/eicshell.yml | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/.github/workflows/eicshell.yml b/.github/workflows/eicshell.yml index 91ba19635..115f7b020 100644 --- a/.github/workflows/eicshell.yml +++ b/.github/workflows/eicshell.yml @@ -1,5 +1,5 @@ -name: Test JANA2 against eic-shell/EICrecon +name: eic-shell on: push: @@ -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 @@ -78,3 +78,16 @@ 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 + export JANA_HOME=$GITHUB_WORKSPACE/jana_home + cmake -S . -B build + cmake --build build --target install -- -j8 + + From 26892c1c75aa59783955c86f5828548aa9ebbc34 Mon Sep 17 00:00:00 2001 From: Nathan Brei Date: Fri, 19 Jul 2024 14:37:31 -0400 Subject: [PATCH 2/3] eic-shell CI job: Help CMake find correct JANA2 install --- .github/workflows/eicshell.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/eicshell.yml b/.github/workflows/eicshell.yml index 115f7b020..3952f08d8 100644 --- a/.github/workflows/eicshell.yml +++ b/.github/workflows/eicshell.yml @@ -86,8 +86,7 @@ jobs: echo "--- Compiling EICrecon ---" git clone https://github.com/eic/EICrecon cd EICrecon - export JANA_HOME=$GITHUB_WORKSPACE/jana_home - cmake -S . -B build + cmake -S . -B build -DJANA_DIR=$GITHUB_WORKSPACE/jana_home/lib/cmake/JANA cmake --build build --target install -- -j8 From 0614bd2aa4b244fb192083306b73e83fbe471e1b Mon Sep 17 00:00:00 2001 From: Nathan Brei Date: Sat, 20 Jul 2024 01:05:45 -0400 Subject: [PATCH 3/3] eic-shell CI job: Run EICrecon --- .github/workflows/eicshell.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.github/workflows/eicshell.yml b/.github/workflows/eicshell.yml index 3952f08d8..3e81639ab 100644 --- a/.github/workflows/eicshell.yml +++ b/.github/workflows/eicshell.yml @@ -89,4 +89,24 @@ jobs: 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