forked from cburstedde/p4est
-
Notifications
You must be signed in to change notification settings - Fork 0
232 lines (199 loc) · 5.81 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
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
232
name: CI for Autotools/Linux
on:
push:
paths-ignore:
- "**/CMakeLists.txt"
- "**.cmake"
- "**.cmake.in"
- "cmake/**"
- "CMake*"
- ".github/workflows/ci_cmake.yml"
- ".github/workflows/ci_darwin.yml"
- ".github/workflows/ci_valgrind.yml"
pull_request:
jobs:
linux-multi1:
runs-on: ubuntu-latest
name: Build 1 on Linux
steps:
- name: Install system dependencies
run: |
sudo apt-get update -yq
sudo apt-get install -yq --no-install-recommends \
zlib1g-dev libmpich-dev mpich
- name: Checkout source code
uses: actions/checkout@main
with:
submodules: true
- name: Run bootstrap script
run: ./bootstrap
- name: Make check with debug, without shared
shell: bash
run: |
DIR="checkdebug_static" && mkdir -p "$DIR" && cd "$DIR"
../configure --disable-shared --enable-debug \
CFLAGS="-O0 -g -Wall"
make -j V=0
make -j check V=0
- name: Make check with MPI and debug
shell: bash
run: |
DIR="checkMPIdebug" && mkdir -p "$DIR" && cd "$DIR"
../configure --enable-mpi --enable-debug \
CFLAGS="-O0 -g -Wall"
make -j V=0
make -j check V=0
- name: Make check with MPI, without debug
shell: bash
run: |
DIR="checkMPI" && mkdir -p "$DIR" && cd "$DIR"
../configure --enable-mpi \
CFLAGS="-O2"
make -j V=0
make -j check V=0
- name: Upload log files
if: always()
uses: actions/upload-artifact@main
with:
name: linux_multi1_log
path: |
./**/config.log
./**/test-suite.log
./**/test/*.log
linux-multi2:
runs-on: ubuntu-latest
name: Build 2 on Linux
steps:
- name: Install system dependencies
run: |
sudo apt-get update -yq
sudo apt-get install -yq --no-install-recommends \
zlib1g-dev libmpich-dev mpich
- name: Checkout source code
uses: actions/checkout@main
with:
submodules: true
- name: Run bootstrap script
run: ./bootstrap
- name: Make check with MPI, debug and C++ compiler
shell: bash
run: |
DIR="checkMPIdebugCXX" && mkdir -p "$DIR" && cd "$DIR"
../configure --enable-mpi --enable-debug \
CFLAGS="-O0" CC=mpicxx
make -j V=0
make -j check V=0
- name: Make distcheck without MPI and debug
shell: bash
run: |
DIR="distcheck" && mkdir -p "$DIR" && cd "$DIR"
../configure
make -j distcheck V=0
- name: Upload log files
if: always()
uses: actions/upload-artifact@main
with:
name: linux_multi2_log
path: |
./**/config.log
./**/test-suite.log
./**/test/*.log
linux-install:
runs-on: ubuntu-latest
name: Make install on Linux
steps:
- name: Install system dependencies
run: |
sudo apt-get update -yq
sudo apt-get install -yq --no-install-recommends \
zlib1g-dev libmpich-dev mpich
- name: Checkout source code
uses: actions/checkout@main
with:
submodules: true
fetch-depth: 0
- name: Fix libsc to specific version
shell: bash
run: |
cd sc
git fetch --tags
# git checkout v2.8.6
git checkout -b test-branch eda054a3f696fda155ca526cdd33698f34a3a5a4
- name: Run bootstrap script
run: ./bootstrap
- name: Install libsc with debug, without shared
shell: bash
run: |
DIR="sc-checkdebug_static" && mkdir -p "$DIR" && cd "$DIR"
../sc/configure --disable-shared --enable-debug \
CFLAGS="-O0 -g -Wall -pedantic"
make -j V=0
make -j check V=0
make -j install V=0
cd ..
rm -rf sc/
- name: Install p4est with debug, without shared
shell: bash
run: |
DIR="p4est-checkdebug_static" && mkdir -p "$DIR" && cd "$DIR"
../configure --disable-shared --enable-debug \
--with-sc="$PWD/../sc-checkdebug_static/local" \
CFLAGS="-O0 -g -Wall -pedantic"
make -j V=0
make -j check V=0
make -j install V=0
- name: Upload log files
if: always()
uses: actions/upload-artifact@main
with:
name: linux_install_log
path: |
./**/config.log
./**/test-suite.log
./**/test/*.log
linux-tarball:
runs-on: ubuntu-latest
name: Pack tarball on Linux
steps:
- name: Install system dependencies
run: |
sudo apt-get update -yq
sudo apt-get install -yq --no-install-recommends \
zlib1g-dev libmpich-dev mpich
- name: Checkout source code
uses: actions/checkout@main
with:
submodules: true
fetch-depth: 0
- name: Identify version
shell: bash
run: |
git tag
git describe --abbrev=4 --match 'v*'
- name: Run bootstrap script
run: ./bootstrap
- name: Configure and make
shell: bash
run: |
DIR="tarball" && mkdir -p "$DIR" && cd "$DIR"
../configure --enable-mpi --enable-debug \
CFLAGS="-O0 -g -pedantic -Wall -Wextra -Werror -Wno-unused-parameter \
-Wno-builtin-declaration-mismatch -Wno-implicit-fallthrough"
make -j V=0
make -j check V=0
make -j distcheck V=0
mv p4est-*.tar.gz ..
- name: Upload tarball
uses: actions/upload-artifact@main
with:
name: p4est_tarball
path: ./p4est-*.tar.gz
- name: Upload log files
if: always()
uses: actions/upload-artifact@main
with:
name: linux_tarball_log
path: |
./**/config.log
./**/test-suite.log
./**/test/*.log