-
Notifications
You must be signed in to change notification settings - Fork 4
64 lines (62 loc) · 2.4 KB
/
geant4-test.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
59
60
61
62
63
64
name: Geant4 Test
on: [push]
jobs:
geant4_11_0-test:
runs-on: ubuntu-latest
steps:
- name: Check trigger
run: echo "The job was automatically triggered by a ${{ github.event_name }} event."
- name: Check runner
run: echo "This job is running on ${{ runner.os }}."
- name: Check repo and branch
run: echo "Branch is ${{ github.ref }} and repository is ${{ github.repository }}."
- 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-v11.0.0"
- name: Check out repository code
uses: actions/checkout@v3
- name: Build application and run single thread with FTFP_BERT
run: |
source ~/Geant4/bin/geant4.sh
mkdir build
cd build
cmake ../
make
./ATLHECTB -m ATLHECTB_run.mac -t 1
ls -ltr
- name: Check job status
run: echo "Job is ${{ job.status }}."
geant4_latest-test:
runs-on: ubuntu-latest
steps:
- name: Check trigger
run: echo "The job was automatically triggered by a ${{ github.event_name }} event."
- name: Check runner
run: echo "This job is running on ${{ runner.os }}."
- name: Check repo and branch
run: echo "Branch is ${{ github.ref }} and repository is ${{ github.repository }}."
- name: Install dependencies
run: sudo apt-get install libxerces-c-dev
- name: Install Geant4
run: |
version=$(curl -s https://api.github.com/repos/hahnjo/geant4-actions-binaries/releases/latest | jq -r '.name')
wget https://github.com/hahnjo/geant4-actions-binaries/releases/download/$version/$version-binaries.tar.gz
tar xf $version-binaries.tar.gz -C $HOME
- name: Check out repository code
uses: actions/checkout@v3
- name: Build application and run single thread with FTFP_BERT
run: |
source ~/Geant4/bin/geant4.sh
mkdir build
cd build
cmake ../
make
./ATLHECTB -m ATLHECTB_run.mac -t 1
ls -ltr
- name: Check job status
run: echo "Job is ${{ job.status }}."