From: Mostyn Bramley-Moore Date: Fri, 27 Dec 2024 20:40:47 +0000 (+0100) Subject: ci: use at most the number of make threads as there are cores on mac and linux github... X-Git-Tag: v3.8.0~96 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=e6d8a479b1de46c13b0a01f118cfb043fd4f708f;p=thirdparty%2Flibarchive.git 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. --- 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