From 6198ea5a91cf62997c9562417ba9da7fee7f30b0 Mon Sep 17 00:00:00 2001 From: Jason Ish Date: Tue, 13 Feb 2024 13:21:26 -0600 Subject: [PATCH] github-ci: use all cpus for coccinelle checks Also put "cocci" in the job name and install parallel so the script can actually run with concurrency. --- .github/workflows/builds.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/builds.yml b/.github/workflows/builds.yml index b3527e94ab..c40a92788b 100644 --- a/.github/workflows/builds.yml +++ b/.github/workflows/builds.yml @@ -777,7 +777,7 @@ jobs: # Fedora 38 build using Clang. fedora-38-clang: - name: Fedora 38 (clang, debug, asan, wshadow, rust-strict, systemd) + name: Fedora 38 (clang, cocci, debug, asan, wshadow, rust-strict, systemd) runs-on: ubuntu-latest container: fedora:38 needs: [prepare-deps] @@ -833,6 +833,7 @@ jobs: libtool \ lz4-devel \ make \ + parallel \ pcre2-devel \ pkgconfig \ python \ @@ -852,7 +853,7 @@ jobs: - run: CC="clang" CFLAGS="$DEFAULT_CFLAGS -Wshadow" ./configure --disable-shared --enable-coccinelle - name: Running unit tests and cocci checks # Set the concurrency level for cocci. - run: CONCURRENCY_LEVEL=2 make check + run: CONCURRENCY_LEVEL=${{ env.CPUS }} make check - run: make distclean - run: CC="clang" CFLAGS="$DEFAULT_CFLAGS -Wshadow -fsanitize=address -fno-omit-frame-pointer" ./configure --enable-debug --enable-unittests --disable-shared --enable-rust-strict --enable-hiredis --enable-nfqueue --enable-lua env: -- 2.47.2