From e443e38b28291fbf102b72ba8cbe0a3e0ea50ad8 Mon Sep 17 00:00:00 2001 From: Samuel Hym Date: Wed, 16 Nov 2022 12:15:58 +0100 Subject: [PATCH] CI: Limit the parallelism on macOS runners We see many runs on macOS failing on SIGKILL during the compilation of dependencies, which might be a sign that their build might exceed the ressources of the runner, so we remove parallelism during that phase --- .github/workflows/common.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/common.yml b/.github/workflows/common.yml index 6ee0cc209..1494fa22a 100644 --- a/.github/workflows/common.yml +++ b/.github/workflows/common.yml @@ -89,7 +89,12 @@ jobs: ocamlc -v - name: Install Multicore Tests dependencies - run: opam install . --deps-only --with-test + run: | + if [ "$RUNNER_OS" = "macOS" ]; then + opam install . --deps-only --with-test -j1 + else + opam install . --deps-only --with-test + fi - name: Set QCHECK_MSG_INTERVAL to reduce noise and keep CI logs tidy run: echo "QCHECK_MSG_INTERVAL=60" >> $GITHUB_ENV