diff --git a/.github/workflows/build-run.yml b/.github/workflows/build-run.yml index 28543a4b4e..113277788a 100644 --- a/.github/workflows/build-run.yml +++ b/.github/workflows/build-run.yml @@ -158,3 +158,43 @@ 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 + 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