From e6d8a479b1de46c13b0a01f118cfb043fd4f708f Mon Sep 17 00:00:00 2001 From: Mostyn Bramley-Moore Date: Fri, 27 Dec 2024 21:40:47 +0100 Subject: [PATCH] ci: use at most the number of make threads as there are cores on mac and linux github runners (#2437) We previously told make to run as many threads as it likes on these CI jobs, but that might sometimes hit resource limits like RAM or the allowed number of open files. These numbers were found experimentally by using `sysctl -n hw.ncpu` on mac and `nproc` on linux. --- .github/workflows/ci.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 10009d5dd..adc19e432 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,20 +29,20 @@ jobs: run: ./build/ci/build.sh -a build env: BS: ${{ matrix.bs }} - MAKE_ARGS: -j + MAKE_ARGS: -j3 - name: Test run: ./build/ci/build.sh -a test env: BS: ${{ matrix.bs }} SKIP_OPEN_FD_ERR_TEST: 1 IGNORE_TRAVERSALS_TEST4: 1 - MAKE_ARGS: -j + MAKE_ARGS: -j3 CTEST_OUTPUT_ON_FAILURE: ON - name: Install run: ./build/ci/build.sh -a install env: BS: ${{ matrix.bs }} - MAKE_ARGS: -j + MAKE_ARGS: -j3 - name: Artifact run: ./build/ci/build.sh -a artifact env: @@ -77,13 +77,13 @@ jobs: run: ./build/ci/build.sh -a build env: BS: ${{ matrix.bs }} - MAKE_ARGS: -j + MAKE_ARGS: -j4 - name: Test run: ./build/ci/build.sh -a test env: BS: ${{ matrix.bs }} SKIP_OPEN_FD_ERR_TEST: 1 - MAKE_ARGS: -j + MAKE_ARGS: -j4 CTEST_OUTPUT_ON_FAILURE: ON - name: Install run: ./build/ci/build.sh -a install -- 2.47.2