-
Notifications
You must be signed in to change notification settings - Fork 64
108 lines (101 loc) · 2.99 KB
/
linux_build_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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
name: Linux Build/Test
on:
# allows us to run workflows manually
workflow_dispatch:
pull_request:
branches:
- develop
paths-ignore:
- '.github/workflows/docker_publish.yml'
- '.github/workflows/mac_build_test.yml'
- '.github/workflows/windows_build_test.yml'
- '.github/workflows/linux_upstream_test_*'
- '.github/workflows/housekeeping.yml'
- '.github/workflows/changelog_test.yml'
- '.github/actions/**'
- 'CI/**'
- 'doc/**'
push:
branches:
- develop
paths-ignore:
- '.github/workflows/docker_publish.yml'
- '.github/workflows/mac_build_test.yml'
- '.github/workflows/windows_build_test.yml'
- '.github/workflows/linux_upstream_test_*'
- '.github/workflows/housekeeping.yml'
- '.github/workflows/changelog_test.yml'
- '.github/actions/**'
- 'CI/**'
- 'doc/**'
jobs:
BuildTest:
runs-on: ubuntu-latest
strategy:
matrix:
ubuntu_version : [
22.04,
]
compiler : [
gcc,
clang,
]
hdf5_version : [
1.14.3,
]
moab_version : [
5.4.1,
5.5.1,
]
geant4_version : [
10.7.4,
11.1.2
]
double_down_version : [
off,
v1.1.0,
]
container:
image: ghcr.io/svalinn/dagmc-ci-ubuntu-${{
matrix.ubuntu_version
}}-${{
matrix.compiler
}}-hdf5_${{
matrix.hdf5_version
}}-moab_${{
matrix.moab_version
}}-geant4_${{
matrix.geant4_version
}}-double_down_${{
matrix.double_down_version
}}/moab:latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
submodules: recursive
- name: Building DAGMC
run: |
git config --global --add safe.directory ${GITHUB_WORKSPACE}
mkdir -p build
cd build
cmake ../ \
-DMOAB_DIR=${moab_install_dir} \
-DBUILD_GEANT4=$([ "${{ matrix.geant4_version }}" != "off" ] && echo "ON" || echo "OFF") \
-DGEANT4_DIR=${geant4_install_dir} \
-DBUILD_CI_TESTS=ON \
-DBUILD_MW_REG_TESTS=OFF \
-DBUILD_STATIC_EXE=OFF \
-DBUILD_STATIC_LIBS=OFF \
-DCMAKE_C_COMPILER=${CC} \
-DCMAKE_CXX_COMPILER=${CXX} \
-DCMAKE_Fortran_COMPILER=gfortran \
-DCMAKE_INSTALL_PREFIX=${install_dir}/dagmc \
-DDOUBLE_DOWN=$([ "${{ matrix.double_down_version }}" != "off" ] && echo "ON" || echo "OFF") \
-Ddd_ROOT=${double_down_install_dir}
make -j${CI_JOBS}
make install
- name: Testing DAGMC
run: |
cd ${GITHUB_WORKSPACE}/build
PATH=${install_dir}/dagmc/bin:${PATH} CTEST_OUTPUT_ON_FAILURE=1 make test