From 4790b56e61cd15454b9d07a6c8e790d694226948 Mon Sep 17 00:00:00 2001 From: OPNA2608 Date: Thu, 26 May 2022 11:37:45 +0200 Subject: [PATCH] Fix multithreading on CI `set` is not the right command to set an envvar so "" got propagated to --parallel & in turn -j. "-j" (no job count) is _bad_ and prolly caused the OOM sitations. --- .github/workflows/build.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 45d54f62e..51719327c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -93,14 +93,10 @@ jobs: id: build-cores run: | # https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources - set amount=2 + amount=2 if [ '${{ runner.os }}' == 'macOS' ]; then amount=3 fi - # the Actions runner does not seem to be happy with two jobs at once on MinGW/Ubuntu - if [ '${{ runner.os }}' == 'Linux' ]; then - amount=1 - fi echo "Amount of cores we can build with: ${amount}"