Skip to content

Commit

Permalink
Merge pull request freifunk-gluon#3058 from blocktrron/ci-build-threads
Browse files Browse the repository at this point in the history
ci: dynamically set thread-count
  • Loading branch information
blocktrron authored Nov 8, 2023
2 parents ec19923 + 7bfe3ec commit 346b23f
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/build-gluon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Show system information
run: contrib/actions/show-system-info.sh

- name: Install Dependencies
run: sudo contrib/actions/install-dependencies.sh

Expand Down
6 changes: 5 additions & 1 deletion contrib/actions/run-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
16 changes: 16 additions & 0 deletions contrib/actions/show-system-info.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/bash

echo "-- CPU --"
cat /proc/cpuinfo

echo "-- Memory --"
cat /proc/meminfo

echo "-- Disk --"
df -h

echo "-- Kernel --"
uname -a

echo "-- Network --"
ip addr

0 comments on commit 346b23f

Please sign in to comment.