Skip to content
Snippets Groups Projects
Commit 3d81f519 authored by David Bauer's avatar David Bauer
Browse files

ci: dynamically set thread-count

Despite what GitHub states in their documentation, the runners feature a
different core count. Automatically set the build thread-count by the
amount of available CPU cores.

Link: https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources



Signed-off-by: default avatarDavid Bauer <mail@david-bauer.net>
parent ec199238
No related branches found
No related tags found
No related merge requests found
......@@ -9,5 +9,9 @@ export GLUON_SITEDIR="contrib/ci/minimal-site"
export GLUON_TARGET="$1"
export BUILD_LOG=1
BUILD_THREADS="$(($(nproc) + 1))"
echo "Building Gluon with $BUILD_THREADS threads"
make update
make -j2 V=s
make -j$BUILD_THREADS V=s
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment