summary refs log tree commit diff
path: root/.ci
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2020-05-30 19:01:32 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2020-05-30 19:32:43 +0200
commit95f29a3d19d44b3738349dfaa437b600850bef2b (patch)
tree3a6144054141fa94cdb9aa5a176abe1ad8640889 /.ci
parentTravis wait can only be used in a top level command? (diff)
downloadnheko-95f29a3d19d44b3738349dfaa437b600850bef2b.tar.xz
Try travis_wait alternative
Diffstat (limited to '.ci')
-rwxr-xr-x.ci/script.sh16
1 files changed, 15 insertions, 1 deletions
diff --git a/.ci/script.sh b/.ci/script.sh
index 15e7f8cf..0aa56d50 100755
--- a/.ci/script.sh
+++ b/.ci/script.sh
@@ -6,7 +6,21 @@ if [ "$FLATPAK" ]; then
 	mkdir -p build-flatpak
 	cd build-flatpak
 
-	flatpak-builder --ccache --repo=repo --subject="Build of Nheko ${VERSION} `date`" app ../io.github.NhekoReborn.Nheko.json
+	flatpak-builder --ccache --repo=repo --subject="Build of Nheko ${VERSION} `date`" app ../io.github.NhekoReborn.Nheko.json &
+
+	# to prevent flatpak builder from timing out on arm, run it in the background and print something every minute for up to 30 minutes.
+	minutes=0
+	limit=30
+	while kill -0 $! >/dev/null 2>&1; do
+		if [ $minutes == $limit ]; then
+			break;
+		fi
+
+		minutes=$((minutes+1))
+
+		sleep 60
+	done
+
 	flatpak build-bundle repo nheko-${VERSION}-${ARCH}.flatpak io.github.NhekoReborn.Nheko master
 
 	mkdir ../artifacts