-
Notifications
You must be signed in to change notification settings - Fork 115
58 lines (49 loc) · 1.57 KB
/
build-run.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: CI
on:
pull_request:
branches:
- master
push:
branches:
- master
tags:
- v*
workflow_dispatch:
jobs:
build-run:
runs-on: self-hosted
container:
image: registry.cern.ch/ship/gha-runner:latest
volumes:
- /cvmfs/ship.cern.ch:/cvmfs/ship.cern.ch
steps:
- name: Checkout
uses: actions/checkout@v4
with:
path: FairShip
- name: Source and Build
run: |
source /cvmfs/ship.cern.ch/24.10/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/24.10/setUp.sh
eval `alienv load FairShip/latest`
python $FAIRSHIP/macro/run_simScript.py --test
- name: Run Reco
run: |
source /cvmfs/ship.cern.ch/24.10/setUp.sh
eval `alienv load FairShip/latest`
python $FAIRSHIP/macro/ShipReco.py -f ship.conical.Pythia8-TGeant4.root -g geofile_full.conical.Pythia8-TGeant4.root
continue-on-error: true # workaround to ignore segfaul on exit
- name: Run Ana
run: |
source /cvmfs/ship.cern.ch/24.10/setUp.sh
eval `alienv load FairShip/latest`
python -i $FAIRSHIP/macro/ShipAna.py -f ship.conical.Pythia8-TGeant4_rec.root -g geofile_full.conical.Pythia8-TGeant4.root
- name: Upload .root artifacts
uses: actions/upload-artifact@v4
with:
name: root-files
path: |
*.root