summary refs log tree commit diff
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2022-12-28 22:26:33 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2022-12-29 03:48:43 +0100
commit6176ce7c2b2b4ed80f9cca6c5985907af414b57a (patch)
tree07f4257dc691bcc201bae7bcb8b425959f9a824c
parentMerge branch 'Windows_send_fix' into 'master' (diff)
downloadnheko-6176ce7c2b2b4ed80f9cca6c5985907af414b57a.tar.xz
Limit build jobs on small systems
-rw-r--r--.gitlab-ci.yml3
1 files changed, 2 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml

index 623a7be5..5e0873d9 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml
@@ -204,9 +204,10 @@ build-flatpak-arm64: - flatpak --noninteractive install --user flathub org.kde.Sdk//5.15-22.08 script: - export VERSION=$(git describe) + - if [ "$(grep MemTotal /proc/meminfo | tr -cd '[0-9]')" -lt "6000000" ]; then export EXTRA_FLAGS='--jobs=3'; fi - mkdir -p build-flatpak - cd build-flatpak - - flatpak-builder --user --disable-rofiles-fuse --ccache --repo=repo --default-branch=${CI_COMMIT_REF_NAME//\//_} --subject="Build of Nheko ${VERSION} `date` for arm64" app ../io.github.NhekoReborn.Nheko.yaml + - flatpak-builder --user --disable-rofiles-fuse --ccache $EXTRA_FLAGS --repo=repo --default-branch=${CI_COMMIT_REF_NAME//\//_} --subject="Build of Nheko ${VERSION} `date` for arm64" app ../io.github.NhekoReborn.Nheko.yaml - flatpak build-bundle repo nheko-arm64.flatpak io.github.NhekoReborn.Nheko ${CI_COMMIT_REF_NAME//\//_} after_script: - (cd ./scripts && ./upload-to-flatpak-repo.sh ../build-flatpak/repo) || true