From 4bda13d870b900a4a908c06f2207275664497498 Mon Sep 17 00:00:00 2001 From: Consolatis <35009135+Consolatis@users.noreply.github.com> Date: Sat, 3 Aug 2024 05:30:02 +0200 Subject: [PATCH] CI: increase speed of codestyle check by running up to nproc ones in parallel --- scripts/check | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/scripts/check b/scripts/check index 7b8c6255..9e108666 100755 --- a/scripts/check +++ b/scripts/check @@ -19,14 +19,10 @@ run_checks () { return $? fi - find src/ include/ \( -name "*.c" -o -name "*.h" \) -type f | - { - errors=0 - while IFS= read -r file; do - run_checkpatch "$file" || errors=1 - done - return ${errors} - } + find src/ include/ \( -name "*.c" -o -name "*.h" \) -type f -print0 | + nice xargs -0 --max-args 1 --max-procs $(nproc) \ + scripts/checkpatch.pl --terse --no-tree --strict --file + return $? } main () { -- 2.52.0