-
Notifications
You must be signed in to change notification settings - Fork 85
82 lines (80 loc) · 2.56 KB
/
ci.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
name: Nalu-Wind-CI
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
Formatting:
runs-on: ubuntu-latest
steps:
- name: Clone
uses: actions/checkout@v3
- name: Check formatting
uses: DoozyX/[email protected]
with:
source: 'nalu.C unit_tests.C ./include ./src ./unit_tests'
extensions: 'H,h,cpp,C'
clangFormatVersion: 13
CPU-Trilinos:
needs: Formatting
runs-on: ubuntu-latest
container:
image: ecpe4s/exawind-snapshot
env:
SPACK_MANAGER: /spack-manager
E4S_MACHINE: true
steps:
- name: Cancel previous runs
uses: styfle/[email protected]
with:
access_token: ${{github.token}}
- name: Clone
uses: actions/checkout@v3
with:
submodules: true
- name: Tests
run: |
/bin/bash -c " \
source ${SPACK_MANAGER}/start.sh && \
mkdir -p ${SPACK_MANAGER}/environments/exawind && \
cd ${SPACK_MANAGER}/environments/exawind && \
ln -s ${GITHUB_WORKSPACE} nalu-wind && \
source ${SPACK_MANAGER}/start.sh && \
quick-create-dev -s nalu-wind@master+tioga+hypre && \
spack manager external --latest --blacklist nalu-wind gmake && \
spack install && \
spack cd -b nalu-wind && \
spack build-env nalu-wind ctest -j $(nproc) -L unit --output-on-failure \
"
CPU-Hypre-Only:
needs: Formatting
runs-on: ubuntu-latest
container:
image: ecpe4s/exawind-snapshot
env:
SPACK_MANAGER: /spack-manager
E4S_MACHINE: true
steps:
- name: Cancel previous runs
uses: styfle/[email protected]
with:
access_token: ${{github.token}}
- name: Clone
uses: actions/checkout@v3
with:
submodules: true
- name: Tests
run: |
/bin/bash -c " \
source ${SPACK_MANAGER}/start.sh && \
mkdir -p ${SPACK_MANAGER}/environments/exawind && \
cd ${SPACK_MANAGER}/environments/exawind && \
ln -s ${GITHUB_WORKSPACE} nalu-wind && \
source ${SPACK_MANAGER}/start.sh && \
quick-create-dev -s nalu-wind@master+tioga+hypre~trilinos-solvers && \
spack manager external --latest --blacklist nalu-wind gmake && \
spack install && \
spack cd -b nalu-wind && \
spack build-env nalu-wind ctest -j $(nproc) -L unit --output-on-failure \
"