blob: b192d9713e15da0e124d200a67319540c0eed926 (
plain)
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
|
#!/usr/bin/bash
set -e
set -o pipefail
CPUS=$(grep processor /proc/cpuinfo | wc -l)
# Use grouped output messages
infobegin() {
echo "::group::${1}"
}
infoend() {
echo "::endgroup::"
}
if [ -f autogen.sh ]; then
infobegin "Configure (autotools)"
NOCONFIGURE=1 ./autogen.sh
./configure --prefix=/usr --enable-compile-warnings=maximum || {
cat config.log
exit 1
}
infoend
infobegin "Build (autotools)"
make -j ${CPUS}
infoend
infobegin "Check (autotools)"
make -j ${CPUS} check || {
true
}
infoend
infobegin "Distcheck (autotools)"
make -j ${CPUS} distcheck
infoend
fi
|