1
0

CI: AppImage build is failing with "Container errored with 'OOMKilled'"

"AppImage build" on the CI is failing with "Container errored with 'OOMKilled'" since 65ae281180
https://cirrus-ci.com/task/6506466559918080
https://cirrus-ci.com/task/6518283422662656

Apparently, when running in a Cirrus CI container, `nproc` returns the number of host CPUs,
instead of the number of cpus available to the container.
Opened upstream issue:
https://github.com/cirruslabs/cirrus-ci-docs/issues/1115
This commit is contained in:
SomberNight
2022-12-03 23:46:25 +00:00
parent 8cfbce827c
commit feb75ec9e6
2 changed files with 2 additions and 1 deletions

View File

@@ -258,7 +258,7 @@ task:
container:
dockerfile: contrib/build-linux/appimage/Dockerfile
cpu: 2
memory: 1G
memory: 2G
pip_cache:
folder: contrib/build-linux/appimage/.cache/pip_cache
fingerprint_script:

View File

@@ -130,6 +130,7 @@ fi
export GCC_STRIP_BINARIES="${GCC_STRIP_BINARIES:-0}"
export CPU_COUNT="$(nproc 2> /dev/null || sysctl -n hw.ncpu)"
info "Found $CPU_COUNT CPUs, which we might use for building."
function break_legacy_easy_install() {