-
Notifications
You must be signed in to change notification settings - Fork 2
67 lines (54 loc) · 1.5 KB
/
test-build-external.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
55
56
57
58
59
60
61
62
63
64
65
66
67
name: build test
on:
pull_request:
branches:
- main
- XSCAPE-1.1-RC
- XSCAPE-1.1-RC_mergeMUSIC
push:
branches:
- main
- XSCAPE-1.1-RC
- XSCAPE-1.1-RC_mergeMUSIC
env:
REPO_NAME: ${{ github.event.repository.name }}
jobs:
build:
name: external packages
runs-on: ubuntu-latest
container:
image: jetscape/base:stable
options: --user root
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
path: ${{ github.event.repository.name }}
- name: Download MUSIC
run: |
cd ${GITHUB_WORKSPACE}/${REPO_NAME}/external_packages
./get_music.sh
- name: Download ISS
run: |
cd ${GITHUB_WORKSPACE}/${REPO_NAME}/external_packages
./get_iSS.sh
- name: Download FREESTREAM
run: |
cd ${GITHUB_WORKSPACE}/${REPO_NAME}/external_packages
./get_freestream-milne.sh
- name: Download SMASH
run: |
cd ${GITHUB_WORKSPACE}/${REPO_NAME}/external_packages
./get_smash.sh
- name: Download 3DGlauber
run: |
cd ${GITHUB_WORKSPACE}/${REPO_NAME}/external_packages
./get_3dglauber.sh
- name: Build Application
run: |
cd ${GITHUB_WORKSPACE}/${REPO_NAME}
mkdir build
cd build
export SMASH_DIR="${GITHUB_WORKSPACE}/${REPO_NAME}/external_packages/smash/smash_code"
cmake .. -DUSE_3DGlauber=ON -DUSE_MUSIC=ON -DUSE_ISS=ON -DUSE_FREESTREAM=ON -DUSE_SMASH=ON
make -j2