diff options
| author | mbkma <[email protected]> | 2026-01-28 09:00:33 +0100 |
|---|---|---|
| committer | mbkma <[email protected]> | 2026-04-05 10:13:35 +0200 |
| commit | 4521e772e5cafd81104f75257896bdef28c5e32b (patch) | |
| tree | f9f29497762f30fa3a414df91ec1e75538b3ae56 /.github/workflows/builds.sh | |
| parent | b5bb59d19abf48583f04448c0dd5fee5befa3724 (diff) | |
| download | mate-panel-gh-actions.tar.bz2 mate-panel-gh-actions.tar.xz | |
ci: migrate to gh actionsgh-actions
Diffstat (limited to '.github/workflows/builds.sh')
| -rwxr-xr-x | .github/workflows/builds.sh | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/.github/workflows/builds.sh b/.github/workflows/builds.sh new file mode 100755 index 00000000..b192d971 --- /dev/null +++ b/.github/workflows/builds.sh @@ -0,0 +1,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 |
