-
Notifications
You must be signed in to change notification settings - Fork 139
225 lines (189 loc) · 6.4 KB
/
ci-github-actions.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
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
name: GitHub Actions CI
on:
push:
branches:
- develop
- main
pull_request:
branches:
- develop
- main
jobs:
linux:
runs-on: ubuntu-latest
container: ${{ matrix.container }}
env:
GH_JOBNAME: ${{ matrix.jobname }}
GH_OS: Linux
strategy:
fail-fast: false
matrix:
jobname:
[
GCC9-NoMPI-Debug-Real,
GCC9-NoMPI-NoOMP-Real,
GCC9-NoMPI-NoOMP-Complex,
GCC9-NoMPI-Sandbox-Real,
GCC9-MPI-Gcov-Real,
GCC9-MPI-Gcov-Complex,
GCC11-NoMPI-Werror-Real,
GCC11-NoMPI-Werror-Complex,
GCC11-NoMPI-Werror-Real-Mixed,
GCC11-NoMPI-Werror-Complex-Mixed,
Clang14-NoMPI-ASan-Real,
Clang14-NoMPI-ASan-Complex,
Clang14-NoMPI-UBSan-Real,
Clang16-NoMPI-Offload-Real,
]
include:
- jobname: GCC9-NoMPI-Debug-Real
container:
image: ghcr.io/qmcpack/ubuntu22-openmpi:latest
options: -u 1001
- jobname: GCC9-NoMPI-NoOMP-Real
container:
image: ghcr.io/qmcpack/ubuntu22-openmpi:latest
options: -u 1001
- jobname: GCC9-NoMPI-NoOMP-Complex
container:
image: ghcr.io/qmcpack/ubuntu22-openmpi:latest
options: -u 1001
- jobname: GCC9-NoMPI-Sandbox-Real
container:
image: ghcr.io/qmcpack/ubuntu22-openmpi:latest
options: -u 1001
- jobname: GCC9-MPI-Gcov-Real
container:
image: ghcr.io/qmcpack/ubuntu22-openmpi:latest
options: -u 1001
- jobname: GCC9-MPI-Gcov-Complex
container:
image: ghcr.io/qmcpack/ubuntu22-openmpi:latest
options: -u 1001
- jobname: GCC11-NoMPI-Werror-Real
container:
image: ghcr.io/qmcpack/ubuntu2110-serial:latest
options: -u 1001
- jobname: GCC11-NoMPI-Werror-Complex
container:
image: ghcr.io/qmcpack/ubuntu2110-serial:latest
options: -u 1001
- jobname: GCC11-NoMPI-Werror-Real-Mixed
container:
image: ghcr.io/qmcpack/ubuntu2110-serial:latest
options: -u 1001
- jobname: GCC11-NoMPI-Werror-Complex-Mixed
container:
image: ghcr.io/qmcpack/ubuntu2110-serial:latest
options: -u 1001
- jobname: Clang14-NoMPI-ASan-Real
container:
image: ghcr.io/qmcpack/ubuntu22-openmpi:latest
options: -u 1001
- jobname: Clang14-NoMPI-ASan-Complex
container:
image: ghcr.io/qmcpack/ubuntu22-openmpi:latest
options: -u 1001
- jobname: Clang14-NoMPI-UBSan-Real
container:
image: ghcr.io/qmcpack/ubuntu22-openmpi:latest
options: -u 1001
- jobname: Clang16-NoMPI-Offload-Real
container:
image: ghcr.io/qmcpack/ubuntu22-clang:latest
options: -u 1001
steps:
- name: Checkout Action
uses: actions/checkout@v3
- name: Configure
run: tests/test_automation/github-actions/ci/run_step.sh configure
- name: Build
run: tests/test_automation/github-actions/ci/run_step.sh build
- name: Test
run: tests/test_automation/github-actions/ci/run_step.sh test
- name: Coverage
if: contains(matrix.jobname, 'Gcov')
run: tests/test_automation/github-actions/ci/run_step.sh coverage
- name: Upload Coverage
if: contains(matrix.jobname, 'Gcov') && github.repository_owner == 'QMCPACK'
uses: codecov/codecov-action@v3
with:
files: ../qmcpack-build/coverage.xml
flags: tests-deterministic # optional
name: codecov-QMCPACK # optional
fail_ci_if_error: true # optional (default = false)
macos:
runs-on: macos-11
env:
GH_JOBNAME: ${{ matrix.jobname }}
GH_OS: macOS
strategy:
fail-fast: false
matrix:
jobname: [macOS-GCC11-NoMPI-Real]
steps:
- name: Checkout Action
uses: actions/checkout@v3
- name: Set Python Version
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Setup Dependencies
run: |
brew install ninja hdf5 fftw boost
pip3 install numpy h5py pandas
- name: Configure
run: tests/test_automation/github-actions/ci/run_step.sh configure
- name: Build
run: tests/test_automation/github-actions/ci/run_step.sh build
- name: Test
run: tests/test_automation/github-actions/ci/run_step.sh test
- name: Install
run: tests/test_automation/github-actions/ci/run_step.sh install
spack-centos-stream:
runs-on: ubuntu-latest
container: ${{ matrix.container }}
env:
GH_JOBNAME: ${{ matrix.jobname }}
GH_OS: Linux
CONTAINER_OS: spack-centos-stream
strategy:
fail-fast: false
matrix:
jobname:
[
GCC11-NoMPI-Debug-Real,
GCC11-NoMPI-NoOMP-Real,
GCC11-NoMPI-NoOMP-Complex,
GCC11-NoMPI-Sandbox-Real,
]
include:
- jobname: GCC11-NoMPI-Debug-Real
container:
image: ghcr.io/qmcpack/centos-stream-gcc11:latest
options: -u 1001
- jobname: GCC11-NoMPI-NoOMP-Real
container:
image: ghcr.io/qmcpack/centos-stream-gcc11:latest
options: -u 1001
- jobname: GCC11-NoMPI-NoOMP-Complex
container:
image: ghcr.io/qmcpack/centos-stream-gcc11:latest
options: -u 1001
- jobname: GCC11-NoMPI-Sandbox-Real
container:
image: ghcr.io/qmcpack/centos-stream-gcc11:latest
options: -u 1001
steps:
- name: Checkout Action
uses: actions/checkout@v3
- name: Echo Debug
run: |
echo $PATH
echo $LD_LIBRARY_PATH
- name: Configure
run: tests/test_automation/github-actions/ci/run_step.sh configure
- name: Build
run: tests/test_automation/github-actions/ci/run_step.sh build
- name: Test
run: tests/test_automation/github-actions/ci/run_step.sh test