-
Notifications
You must be signed in to change notification settings - Fork 0
231 lines (206 loc) · 7.91 KB
/
continuousIntegration.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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
name: ShivaCI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
# code_style:
# needs: [check_pull_request_is_not_a_draft]
# runs-on: ubuntu-22.04
# steps:
# - name: Checkout Repository
# uses: actions/checkout@v3
# with:
# submodules: true
# lfs: false
# - name: Check style
# env:
# DOCKER_REPOSITORY: geosx/ubuntu20.04-gcc9
# CMAKE_BUILD_TYPE: Release
# BUILD_AND_TEST_ARGS: --test-code-style
# run: ./scripts/ci_build_and_test.sh
doxygen_check:
runs-on: ubuntu-22.04
steps:
- name: Checkout Repository
uses: actions/checkout@v3
with:
submodules: true
lfs: false
- name: Check doxygen
env:
DOCKER_REPOSITORY: geosx/ubuntu:22.04
HOST_CONFIG: hostconfigs/environment.cmake
CMAKE_CXX_COMPILER: /usr/bin/clang++
CMAKE_C_COMPILER: /usr/bin/clang
CMAKE_BUILD_TYPE: Release
BUILD_AND_TEST_ARGS: --test-doxygen
run: ./scripts/ci_build_and_test.sh
code_checks:
runs-on: ubuntu-22.04
steps:
- name: Checkout Repository
uses: actions/checkout@v3
with:
submodules: true
lfs: false
- name: code_checks
env:
DOCKER_REPOSITORY: geosx/ubuntu:22.04
HOST_CONFIG: hostconfigs/environment.cmake
CMAKE_CXX_COMPILER: /usr/bin/clang++
CMAKE_C_COMPILER: /usr/bin/clang
CMAKE_BUILD_TYPE: Release
BUILD_AND_TEST_ARGS: --code_checks
run: ./scripts/ci_build_and_test.sh
linux_builds:
name: ${{matrix.name}}
runs-on: ${{matrix.os}}
strategy:
# Set fail-fast to false to ensure that feedback is delivered for all matrix combinations. Consider changing this to true when your workflow is stable.
fail-fast: false
matrix:
include:
- name: RHEL8.8-clang15-dbg (ubi8.8, clang-15.0.7, Debug)
DOCKER_REPOSITORY: geosx/ubi:8.8-854
OS: ubuntu-22.04
CMAKE_CXX_COMPILER: clang++
CMAKE_C_COMPILER: clang
CMAKE_BUILD_TYPE: Debug
- name: RHEL8.8-clang15-rel (ubi8.8, clang-15.0.7, Release)
DOCKER_REPOSITORY: geosx/ubi:8.8-854
OS: ubuntu-22.04
CMAKE_CXX_COMPILER: clang++
CMAKE_C_COMPILER: clang
CMAKE_BUILD_TYPE: Release
- name: RHEL8.8-gcc12-dbg (ubi8.8, gcc 12.2.1, Debug)
DOCKER_REPOSITORY: geosx/ubi:8.8-854
OS: ubuntu-22.04
CMAKE_CXX_COMPILER: /opt/rh/gcc-toolset-12/root/bin/g++
CMAKE_C_COMPILER: /opt/rh/gcc-toolset-12/root/bin/gcc
CMAKE_BUILD_TYPE: Debug
- name: RHEL8.8-gcc12-rel (ubi8.8, gcc 12.2.1, Release)
DOCKER_REPOSITORY: geosx/ubi:8.8-854
OS: ubuntu-22.04
CMAKE_CXX_COMPILER: /opt/rh/gcc-toolset-12/root/bin/g++
CMAKE_C_COMPILER: /opt/rh/gcc-toolset-12/root/bin/gcc
CMAKE_BUILD_TYPE: Release
- name: ubuntu22-gcc11-rel (ubi8.8, gcc 11.4.0, Release)
DOCKER_REPOSITORY: geosx/ubuntu:22.04
OS: ubuntu-22.04
CMAKE_CXX_COMPILER: /usr/bin/g++
CMAKE_C_COMPILER: /usr/bin/gcc
CMAKE_BUILD_TYPE: Release
BUILD_AND_TEST_ARGS: "--disable-unit-tests"
- name: ubuntu22-clang14-rel (ubi8.8, clang-14.0.0, Release)
DOCKER_REPOSITORY: geosx/ubuntu:22.04
OS: ubuntu-22.04
CMAKE_CXX_COMPILER: /usr/bin/clang++
CMAKE_C_COMPILER: /usr/bin/clang
CMAKE_BUILD_TYPE: Release
BUILD_AND_TEST_ARGS: "--disable-unit-tests"
- name: ubuntu22-clang14-dbg (ubi8.8, clang-14.0.0, Debug)
DOCKER_REPOSITORY: geosx/ubuntu:22.04
OS: ubuntu-22.04
CMAKE_CXX_COMPILER: /usr/bin/clang++
CMAKE_C_COMPILER: /usr/bin/clang
CMAKE_BUILD_TYPE: Debug
BUILD_AND_TEST_ARGS: "--disable-unit-tests"
- name: ubuntu22-gcc11-dbg (ubi8.8, gcc 11.4.0, Release)
DOCKER_REPOSITORY: geosx/ubuntu:22.04
OS: ubuntu-22.04
CMAKE_CXX_COMPILER: /usr/bin/g++
CMAKE_C_COMPILER: /usr/bin/gcc
CMAKE_BUILD_TYPE: Debug
BUILD_AND_TEST_ARGS: "--disable-unit-tests"
- name: ubuntu22-gcc11-cuda11-rel (ubi8.8, gcc 11.4.0, cuda-11.8.0, Release)
DOCKER_REPOSITORY: geosx/ubuntu:22.04-cuda11.8.0
OS: ubuntu-22.04
CMAKE_CXX_COMPILER: /usr/bin/g++
CMAKE_C_COMPILER: /usr/bin/gcc
CMAKE_BUILD_TYPE: Release
ENABLE_CUDA: ON
BUILD_AND_TEST_ARGS: "--disable-unit-tests"
- name: ubuntu22-gcc11-cuda11-dbg (ubi8.8, gcc 11.4.0, cuda-11.8.0, Debug)
DOCKER_REPOSITORY: geosx/ubuntu:22.04-cuda11.8.0
OS: ubuntu-22.04
CMAKE_CXX_COMPILER: /usr/bin/g++
CMAKE_C_COMPILER: /usr/bin/gcc
CMAKE_BUILD_TYPE: Debug
ENABLE_CUDA: ON
BUILD_AND_TEST_ARGS: "--disable-unit-tests"
- name: ubuntu22-clang14-cuda11-rel (ubi8.8, clang-14.0.0, cuda-11.8.0, Release)
DOCKER_REPOSITORY: geosx/ubuntu:22.04-cuda11.8.0
OS: ubuntu-22.04
CMAKE_CXX_COMPILER: /usr/bin/clang++
CMAKE_C_COMPILER: /usr/bin/clang
CMAKE_BUILD_TYPE: Release
ENABLE_CUDA: ON
BUILD_AND_TEST_ARGS: "--disable-unit-tests"
- name: ubuntu22-clang14-cuda11-dbg (ubi8.8, clang-14.0.0, cuda-11.8.0, Debug)
DOCKER_REPOSITORY: geosx/ubuntu:22.04-cuda11.8.0
OS: ubuntu-22.04
CMAKE_CXX_COMPILER: /usr/bin/clang++
CMAKE_C_COMPILER: /usr/bin/clang
CMAKE_BUILD_TYPE: Debug
ENABLE_CUDA: ON
BUILD_AND_TEST_ARGS: "--disable-unit-tests"
- name: RHEL8.8-clang15-cuda12-rel (ubi8.8, clang-15.0.7, cuda-12.2.2, Release)
DOCKER_REPOSITORY: geosx/ubi:8.8-cuda12.2.2
OS: ubuntu-22.04
CMAKE_CXX_COMPILER: clang++
CMAKE_C_COMPILER: clang
CMAKE_BUILD_TYPE: Release
ENABLE_CUDA: ON
BUILD_AND_TEST_ARGS: "--disable-unit-tests"
- name: RHEL8.8-gcc12-cuda12-rel (ubi8.8, gcc 12.2.1, cuda-12.2.2, Release)
DOCKER_REPOSITORY: geosx/ubi:8.8-cuda12.2.2
OS: ubuntu-22.04
CMAKE_CXX_COMPILER: /opt/rh/gcc-toolset-12/root/bin/g++
CMAKE_C_COMPILER: /opt/rh/gcc-toolset-12/root/bin/gcc
CMAKE_BUILD_TYPE: Release
ENABLE_CUDA: ON
BUILD_AND_TEST_ARGS: "--disable-unit-tests"
steps:
- name: Checkout Repository
uses: actions/checkout@v3
with:
submodules: true
lfs: false
- name: Print environment
run: printenv
- name: Build and test
env:
DOCKER_REPOSITORY: ${{ matrix.DOCKER_REPOSITORY }}
CMAKE_CXX_COMPILER: ${{ matrix.CMAKE_CXX_COMPILER }}
CMAKE_C_COMPILER: ${{ matrix.CMAKE_C_COMPILER }}
CMAKE_BUILD_TYPE: ${{ matrix.CMAKE_BUILD_TYPE }}
ENABLE_CUDA: ${{ matrix.ENABLE_CUDA }}
BUILD_AND_TEST_ARGS: ${{ matrix.BUILD_AND_TEST_ARGS }} --build-exe
HOST_CONFIG: hostconfigs/environment.cmake
run: ./scripts/ci_build_and_test.sh
check_that_all_jobs_succeeded:
runs-on: ubuntu-22.04
needs:
- linux_builds
- doxygen_check
- code_checks
if: ${{ always() }}
env:
RETURN_VAL: |
${{
needs.linux_builds.result == 'success' &&
needs.doxygen_check.result == 'success' &&
needs.code_checks.result == 'success'
}}
steps:
- name: PR Success
if: ${{ contains(env.RETURN_VAL, 'true') }}
run: "true"
- name: PR Failure
if: ${{ contains(env.RETURN_VAL, 'false') }}
run: "false"