From f4b84327e8e71f62134de753c8b5c48c7e1018c1 Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Sat, 6 Jun 2020 00:04:18 +0200 Subject: [PATCH] Limit jobs on arm --- .ci/script.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.ci/script.sh b/.ci/script.sh index 32de9465..63e7f135 100755 --- a/.ci/script.sh +++ b/.ci/script.sh @@ -6,7 +6,12 @@ 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 & + jobsarg="" + if [ "$ARCH" = "arm64" ]; then + jobsarg="--jobs=2" + fi + + flatpak-builder --ccache --repo=repo --subject="Build of Nheko ${VERSION} $jobsarg `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