-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (49 loc) · 1.53 KB
/
build.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
name: Build G4FullEventSim
on: push
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
version: [
geant4-v11.1.1,
geant4-v11.0.3,
geant4.10.07.p04,
]
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Install dependencies
run: sudo apt-get install libhepmc3-dev libxerces-c-dev
- name: Install Geant4
run: |
wget https://github.com/hahnjo/geant4-actions-binaries/releases/download/${{ matrix.version }}/${{ matrix.version }}-binaries.tar.gz
tar xf ${{ matrix.version }}-binaries.tar.gz -C $HOME
- name: Build G4FullEventSim
run: |
source ~/Geant4/bin/geant4.sh
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
make -j4
no-hepmc:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Install dependencies
run: sudo apt-get install libxerces-c-dev
- name: Install Geant4
run: |
wget https://github.com/hahnjo/geant4-actions-binaries/releases/download/$GEANT4_VERSION/$GEANT4_VERSION-binaries.tar.gz
tar xf $GEANT4_VERSION-binaries.tar.gz -C $HOME
env:
GEANT4_VERSION: "geant4.10.07.p04"
- name: Build G4FullEventSim
run: |
source ~/Geant4/bin/geant4.sh
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
make -j4