Skip to content

Commit

Permalink
feat(ci): run eicrecon on two major configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
wdconinc authored Oct 20, 2022
1 parent e46b50f commit 2ded26d
Showing 1 changed file with 24 additions and 11 deletions.
35 changes: 24 additions & 11 deletions .github/workflows/linux-eic-shell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,66 +58,79 @@ jobs:

ddsim:
runs-on: ubuntu-latest
strategy:
matrix:
detector_config: [arches, brycecanyon]
steps:
- uses: cvmfs-contrib/github-action-cvmfs@v3
- uses: eic/run-cvmfs-osg-eic-shell@main
with:
platform-release: "jug_xl:nightly"
setup: /opt/detector/setup.sh
run: |
ddsim --compactFile $DETECTOR_PATH/$DETECTOR_CONFIG.xml -G --gun.particle "e-" --gun.momentumMin "1*GeV" --gun.momentumMax "20*GeV" --gun.distribution "uniform" -N 100 --outputFile sim_e_1GeV_20GeV.edm4hep.root
ddsim --compactFile $DETECTOR_PATH/$DETECTOR_${{ matrix.detector_config }}.xml -G --gun.particle "e-" --gun.momentumMin "1*GeV" --gun.momentumMax "20*GeV" --gun.distribution "uniform" -N 100 --outputFile sim_e_1GeV_20GeV_${{ matrix.detector_config }}.edm4hep.root
- uses: actions/upload-artifact@v3
with:
name: sim_e_1GeV_20GeV.edm4hep.root
path: sim_e_1GeV_20GeV.edm4hep.root
name: sim_e_1GeV_20GeV_${{ matrix.detector_config }}.edm4hep.root
path: sim_e_1GeV_20GeV_${{ matrix.detector_config }}.edm4hep.root
if-no-files-found: error

eicrecon-gcc:
runs-on: ubuntu-latest
needs:
- build-gcc
- ddsim
strategy:
matrix:
detector_config: [arches, brycecanyon]
steps:
- uses: actions/download-artifact@v3
with:
name: build-gcc-eic-shell
- uses: actions/download-artifact@v3
with:
name: sim_e_1GeV_20GeV.edm4hep.root
name: sim_e_1GeV_20GeV_${{ matrix.detector_config }}.edm4hep.root
- uses: cvmfs-contrib/github-action-cvmfs@v3
- uses: eic/run-cvmfs-osg-eic-shell@main
with:
platform-release: "jug_xl:nightly"
setup: /opt/detector/setup.sh
run: |
JANA_HOME=/usr/local/lib/EICrecon eicrecon -Ppodio:output_file=rec_e_1GeV_20GeV.edm4eic.root sim_e_1GeV_20GeV.edm4hep.root
export DETECTOR_CONFIG=$DETECTOR_${{ matrix.detector_config }}
export JANA_HOME=/usr/local/lib/EICrecon
eicrecon -Ppodio:output_file=rec_e_1GeV_20GeV_${{ matrix.detector_config }}.edm4eic.root sim_e_1GeV_20GeV_${{ matrix.detector_config }}.edm4hep.root
- uses: actions/upload-artifact@v3
with:
name: eicrecon_rec_e_1GeV_20GeV.edm4eic.root
path: rec_e_1GeV_20GeV.edm4eic.root
name: eicrecon_rec_e_1GeV_20GeV_${{ matrix.detector_config }}.edm4eic.root
path: rec_e_1GeV_20GeV_${{ matrix.detector_config }}.edm4eic.root
if-no-files-found: error

run_eicrecon_reco_flags-gcc:
runs-on: ubuntu-latest
needs:
- build-gcc
- ddsim
strategy:
matrix:
detector_config: [arches, brycecanyon]
steps:
- uses: actions/download-artifact@v3
with:
name: build-gcc-eic-shell
- uses: actions/download-artifact@v3
with:
name: sim_e_1GeV_20GeV.edm4hep.root
name: sim_e_1GeV_20GeV_${{ matrix.detector_config }}.edm4hep.root
- uses: cvmfs-contrib/github-action-cvmfs@v3
- uses: eic/run-cvmfs-osg-eic-shell@main
with:
platform-release: "jug_xl:nightly"
setup: /opt/detector/setup.sh
run: |
JANA_HOME=/usr/local/lib/EICrecon run_eicrecon_reco_flags.py sim_e_1GeV_20GeV.edm4hep.root rec_e_1GeV_20GeV
export DETECTOR_CONFIG=$DETECTOR_${{ matrix.detector_config }}
export JANA_HOME=/usr/local/lib/EICrecon
run_eicrecon_reco_flags.py sim_e_1GeV_20GeV_${{ matrix.detector_config }}.edm4hep.root rec_e_1GeV_20GeV_${{ matrix.detector_config }}
- uses: actions/upload-artifact@v3
with:
name: run_eicrecon_reco_flags_rec_e_1GeV_20GeV.edm4eic.root
path: rec_e_1GeV_20GeV.tree.edm4eic.root
name: run_eicrecon_reco_flags_rec_e_1GeV_20GeV_${{ matrix.detector_config }}.edm4eic.root
path: rec_e_1GeV_20GeV_${{ matrix.detector_config }}.tree.edm4eic.root
if-no-files-found: error

0 comments on commit 2ded26d

Please sign in to comment.