summaryrefslogtreecommitdiff
path: root/.github/workflows/builds.sh
diff options
context:
space:
mode:
authormbkma <[email protected]>2026-03-12 18:15:25 +0100
committerGitHub <[email protected]>2026-03-12 17:15:25 +0000
commitc8432a5a135ee5a8a187384eaf81d6fdf9aa2adb (patch)
tree33c071da8734a8cb2c96caad8c2c7e2521852907 /.github/workflows/builds.sh
parent1533537baa41b74904661846f5acb8516031fd5f (diff)
downloadlibmateweather-c8432a5a135ee5a8a187384eaf81d6fdf9aa2adb.tar.bz2
libmateweather-c8432a5a135ee5a8a187384eaf81d6fdf9aa2adb.tar.xz
ci: migrate from Travis CI to GitHub Actions
Replace Travis CI configuration with GitHub Actions workflows. Add CI build workflow for Debian, Fedora, Ubuntu, and Archlinux. Add release workflow for automated GitHub releases on tags. Add dependabot configuration for GHA pin updates. Remove obsolete .travis.yml and .build.yml.
Diffstat (limited to '.github/workflows/builds.sh')
-rwxr-xr-x.github/workflows/builds.sh38
1 files changed, 38 insertions, 0 deletions
diff --git a/.github/workflows/builds.sh b/.github/workflows/builds.sh
new file mode 100755
index 0000000..b192d97
--- /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