-
Notifications
You must be signed in to change notification settings - Fork 10
122 lines (121 loc) · 3.91 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
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
name: CI
on: [push, pull_request]
jobs:
build:
strategy:
matrix:
name: [mac, ubuntu-mpich, ubuntu-standard, ubuntu-debug,
ubuntu-nogather, mac-thread-cap]
include:
- name: ubuntu-standard
os: ubuntu-latest
testos: LINUX
maketest: "ctest"
testexamples: 1
debug: 0
noalligather: 0
mpich: 0
threadoff: 0
elsi: 0
- name: ubuntu-debug
os: ubuntu-latest
testos: LINUX
maketest: "ctest -R Regression111"
testexamples: 1
debug: 1
noalligather: 0
mpich: 0
threadoff: 0
elsi: 0
- name: ubuntu-nogather
os: ubuntu-latest
testos: LINUX
maketest: "ctest"
testexamples: 1
debug: 0
noalligather: 1
mpich: 0
threadoff: 0
elsi: 0
- name: ubuntu-mpich
os: ubuntu-latest
testos: LINUX
maketest: "ctest -R Regression211"
testexamples: 0
debug: 0
noalligather: 0
mpich: 1
threadoff: 0
elsi: 0
- name: mac-thread-cap
os: macos-latest
testos: OSX
maketest: "ctest -R Regression111"
testexamples: 0
debug: 0
noalligather: 0
mpich: 0
threadoff: 1
elsi: 0
- name: mac
os: macos-latest
testos: OSX
maketest: "ctest -R Regression111"
testexamples: 0
debug: 0
noalligather: 0
mpich: 0
lint: 1
threadoff: 0
elsi: 1
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v1
- uses: conda-incubator/setup-miniconda@v2
- name: setup environment
run: bash -l UnitTests/before_install.sh
env:
TESTOS: ${{ matrix.testos }}
MPICH: ${{ matrix.mpich }}
- name: build ntpoly
run: |
bash -l UnitTests/run_cmake.sh
env:
TESTOS: ${{ matrix.testos }}
DEBUG: ${{ matrix.debug }}
NOALLIGATHER: ${{ matrix.noalligather }}
- name: regression tests
run: |
bash -l UnitTests/run_ci_test.sh
env:
MAKETEST: ${{ matrix.maketest }}
TESTOS: ${{ matrix.testos }}
THREADOFF: ${{ matrix.threadoff }}
- name: check examples
run: |
bash -l UnitTests/check_examples.sh
env:
TESTEXAMPLES: ${{ matrix.testexamples }}
TESTOS: ${{ matrix.testos }}
- name: lint
if: ${{ matrix.lint }}
run: |
bash -l UnitTests/lint.sh
env:
TESTOS: ${{ matrix.testos }}
- name: elsi
if: ${{ matrix.elsi }}
run:
python UnitTests/generate_elsi.py
- name: upload artifacts
if: always()
uses: actions/upload-artifact@v1
with:
name: build
path: Build
- name: upload elsi
if: ${{ matrix.elsi }}
uses: actions/upload-artifact@v1
with:
name: elsi
path: ElsiBuild/elsi_output