-
Notifications
You must be signed in to change notification settings - Fork 2
54 lines (45 loc) · 1.08 KB
/
test-build-nPDF.yaml
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
name: test nPDF build
on:
pull_request:
branches:
- main
- XSCAPE-1.2-RC
- cpp17_cmake_syntax
- ipglasma
- support_LHAPDF
push:
branches:
- main
- XSCAPE-1.2-RC
- cpp17_cmake_syntax
- ipglasma
- support_LHAPDF
env:
REPO_NAME: ${{ github.event.repository.name }}
jobs:
build:
name: build nPDF
runs-on: ubuntu-latest
container:
image: jetscape/base:v1.11
options: --user root
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
path: ${{ github.event.repository.name }}
- name: Build Application
run: |
cd ${GITHUB_WORKSPACE}/${REPO_NAME}
mkdir build
cd build
cmake ..
make -j2
- name: Download nPDF set
run: |
cd ${GITHUB_WORKSPACE}/${REPO_NAME}/external_packages
./get_lhapdf.sh JAM20-SIDIS_PDF_proton_nlo
- name: Run JETSCAPE with nPDF
run: |
cd ${GITHUB_WORKSPACE}/${REPO_NAME}/build
./runJetscape ../config/jetscape_user_nPDF_test.xml