CI: increase speed of codestyle check

by running up to nproc ones in parallel
This commit is contained in:
Consolatis 2024-08-03 05:30:02 +02:00
parent c202d77c2d
commit 4bda13d870

View file

@ -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 () {