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.
This commit is contained in:
OPNA2608 2022-05-26 11:37:45 +02:00
parent 4b91669e58
commit 4790b56e61

View file

@ -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}"