ci: mitigate build overload

During the build meson attempts to distribute the workload of multiple
sub-projects across all available CPUs and parallelize each build within
those projects, resulting in an NxN task generation.

This process could potentially overload the CI systems, leading to
potential failures (see for example issue #202).

To mitigate this, always use --jobs=1 during the CI run, which
serializes the build of sub-projects and restricts the level of
parallelization to N.

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
This commit is contained in:
Andrea Righi 2024-04-04 10:45:27 +02:00
parent 3166338a74
commit a20b0669bc

View File

@ -55,7 +55,7 @@ jobs:
# The actual build:
- run: meson setup build -Dkernel=$(pwd)/linux -Dkernel_headers=./linux/usr/include
- run: meson compile -C build
- run: meson compile -C build --jobs=1
# Print CPU model before running the tests (this can be useful for
# debugging purposes)