Skip to content

Commit

Permalink
eicshell CI job does a system install
Browse files Browse the repository at this point in the history
This avoids ongoing problems where pieces of the spack install of JANA leaks into the fresh build of JANA and/or EICrecon.
  • Loading branch information
nathanwbrei committed Jul 31, 2024
1 parent 18c5152 commit 30a1efa
Showing 1 changed file with 21 additions and 19 deletions.
40 changes: 21 additions & 19 deletions .github/workflows/eicshell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ jobs:
mkdir -p $GITHUB_WORKSPACE/build
cd $GITHUB_WORKSPACE/build
cmake .. \
-DCMAKE_INSTALL_PREFIX=$GITHUB_WORKSPACE \
-DCMAKE_INSTALL_PREFIX=/opt/local \
-DCMAKE_BUILD_TYPE=Debug \
-DCMAKE_CXX_STANDARD=20 \
-DUSE_PYTHON=ON \
-DUSE_ROOT=ON \
Expand All @@ -38,52 +39,49 @@ jobs:
platform-release: "jug_xl:nightly"
run: |
cd $GITHUB_WORKSPACE/build
make -j4 install
su -c "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: |
export JANA_HOME=$GITHUB_WORKSPACE
export JANA_HOME=/opt/local
export JANA_PLUGIN_PATH=$JANA_HOME/plugins
export LD_LIBRARY_PATH=$JANA_HOME/lib:$LD_LIBRARY_PATH
$GITHUB_WORKSPACE/bin/jana -Pplugins=JTest -Pjana:nevents=100
jana -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: |
export JANA_HOME=$GITHUB_WORKSPACE
export JANA_HOME=/opt/local
export JANA_PLUGIN_PATH=$JANA_HOME/plugins
export LD_LIBRARY_PATH=$JANA_HOME/lib:$LD_LIBRARY_PATH
$GITHUB_WORKSPACE/bin/jana-unit-tests
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 ------------------------------"
export JANA_HOME=$GITHUB_WORKSPACE
export JANA_HOME=/opt/local
export JANA_PLUGIN_PATH=$JANA_HOME/plugins
export LD_LIBRARY_PATH=$JANA_HOME/lib:$LD_LIBRARY_PATH
$GITHUB_WORKSPACE/bin/jana \
-Pplugins=TimesliceExample \
-Pjana:nevents=100 \
events.root
jana -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 ------------------------------"
export JANA_HOME=$GITHUB_WORKSPACE
export JANA_HOME=/opt/local
export JANA_PLUGIN_PATH=$JANA_HOME/plugins
export LD_LIBRARY_PATH=$JANA_HOME/lib:$LD_LIBRARY_PATH
$GITHUB_WORKSPACE/bin/jana -Pplugins=TimesliceExample -Pjana:nevents=100 timeslices.root
jana -Pplugins=TimesliceExample -Pjana:nevents=100 timeslices.root
- name: Compile EICrecon
Expand All @@ -92,13 +90,17 @@ jobs:
platform-release: "jug_xl:nightly"
run: |
echo "--- Compiling EICrecon ---"
export JANA_HOME=$GITHUB_WORKSPACE
export JANA_HOME=/opt/local
export LD_LIBRARY_PATH=$JANA_HOME/lib:$LD_LIBRARY_PATH
cd ..
git clone https://github.com/eic/EICrecon
cd EICrecon
cmake -S . -B build -DJANA_DIR=$JANA_HOME/lib/cmake/JANA
cmake --build build --target install -- -j8
cmake -S . -B build \
-DJANA_DIR=$JANA_HOME/lib/cmake/JANA \
-DCMAKE_INSTALL_PREFIX=/opt/local \
-DCMAKE_BUILD_TYPE=Debug
su -c "cmake --build build --target install -- -j8"
- name: Generate EICrecon input data
uses: eic/run-cvmfs-osg-eic-shell@main
Expand All @@ -119,8 +121,8 @@ jobs:
setup: "/opt/detector/epic-main/bin/thisepic.sh"
run: |
echo "--- Running EICrecon ---"
export JANA_HOME=$GITHUB_WORKSPACE
export JANA_HOME=/opt/local
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
export JANA_PLUGIN_PATH=/opt/local/lib/EICrecon/plugins
eicrecon sim_e_1GeV_20GeV_craterlake.edm4hep.root

0 comments on commit 30a1efa

Please sign in to comment.