Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions .github/workflows/build-run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Loading