From 6edf78fe91f41e18c39a32d8bc023628b8aa9c5b Mon Sep 17 00:00:00 2001 From: Oliver Lantwin Date: Tue, 25 Mar 2025 16:03:18 +0100 Subject: [PATCH 1/3] chore(CI): add EventCalc to CI --- .github/workflows/build-run.yml | 39 +++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/.github/workflows/build-run.yml b/.github/workflows/build-run.yml index 28543a4b4e..7368c36b70 100644 --- a/.github/workflows/build-run.yml +++ b/.github/workflows/build-run.yml @@ -158,3 +158,42 @@ jobs: source /cvmfs/ship.cern.ch/$version/setUp.sh eval $(alienv load FairShip/latest) python $FAIRSHIP/macro/getGeoInformation.py --geometry geofile_full.conical.Pythia8-TGeant4.root --level 2 + + run-EventCalc: + runs-on: self-hosted + needs: build + + container: + image: registry.cern.ch/ship/gha-runner:latest + volumes: + - /cvmfs/ship.cern.ch:/cvmfs/ship.cern.ch + + env: + version: 25.01 + + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + path: FairShip + lfs: true + + - name: Cache build + id: cache-build + uses: actions/cache@v4 + with: + key: ${{ env.version }}-${{ github.sha }} + path: sw/ + + - name: Build + if: steps.cache-build.outputs.cache-hit != 'true' + run: | + source /cvmfs/ship.cern.ch/$version/setUp.sh + aliBuild build FairShip --always-prefer-system --config-dir $SHIPDIST --defaults release --jobs 4 --debug + + - name: Run Sim + run: | + source /cvmfs/ship.cern.ch/$version/setUp.sh + eval $(alienv load FairShip/latest) + mkdir test_folder + python $FAIRSHIP/macro/run_simScript.py --evtcalc -n 100 -o test_folder -f /cvmfs/ship.cern.ch/test_data/Dark-photons_test_data.root From 8115803b5e12ee890f4d979cc4d6f1897b0fb004 Mon Sep 17 00:00:00 2001 From: Oliver Lantwin Date: Wed, 26 Mar 2025 12:22:49 +0100 Subject: [PATCH 2/3] fixup! chore(CI): add EventCalc to CI --- .github/workflows/build-run.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-run.yml b/.github/workflows/build-run.yml index 7368c36b70..d9b683344a 100644 --- a/.github/workflows/build-run.yml +++ b/.github/workflows/build-run.yml @@ -196,4 +196,4 @@ jobs: source /cvmfs/ship.cern.ch/$version/setUp.sh eval $(alienv load FairShip/latest) mkdir test_folder - python $FAIRSHIP/macro/run_simScript.py --evtcalc -n 100 -o test_folder -f /cvmfs/ship.cern.ch/test_data/Dark-photons_test_data.root + python $FAIRSHIP/macro/run_simScript.py --evtcalc -n 100 -o test_folder -f /cvmfs/ship.cern.ch/test_data/HNL-e_test_data.root From fd865943a260f2c376983a4153f9d068a952189b Mon Sep 17 00:00:00 2001 From: Oliver Lantwin Date: Wed, 26 Mar 2025 13:54:21 +0100 Subject: [PATCH 3/3] fixup! chore(CI): add EventCalc to CI --- .github/workflows/build-run.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-run.yml b/.github/workflows/build-run.yml index d9b683344a..113277788a 100644 --- a/.github/workflows/build-run.yml +++ b/.github/workflows/build-run.yml @@ -196,4 +196,5 @@ jobs: source /cvmfs/ship.cern.ch/$version/setUp.sh eval $(alienv load FairShip/latest) mkdir test_folder - python $FAIRSHIP/macro/run_simScript.py --evtcalc -n 100 -o test_folder -f /cvmfs/ship.cern.ch/test_data/HNL-e_test_data.root + cp /cvmfs/ship.cern.ch/test_data/HNL-e_test_data.root test_folder/ + python $FAIRSHIP/macro/run_simScript.py --evtcalc -n 100 -o test_folder -f test_folder/HNL-e_test_data.root