From 89ccc30e9f5adb90332a4cf1fe83eec05bb22f74 Mon Sep 17 00:00:00 2001 From: Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> Date: Thu, 9 Jan 2025 14:23:23 +0100 Subject: Update some CI jobs (#2660) * Move ThreadSanitizer job to the scheduled jobs (once a day): all our tests are intrinsically mono-thread and this job takes quite some time * Two explicit jobs to test LTO and Gold linker, used by oss-fuzz * Two explicit jobs for Windows (with msys2) * Run address sanitizer only on the 4 main jobs: newest/oldest gcc/clang * Reduce the time used by fuzzing jobs. Note that oss-fuzz is continuosly fuzzing our code! * Move the no x86_64 jobs to a dedicated file This way, the main matrix is a little bit simpler and the CI jobs last a little shorter --- .github/workflows/build_scheduled.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to '.github/workflows/build_scheduled.yml') diff --git a/.github/workflows/build_scheduled.yml b/.github/workflows/build_scheduled.yml index 962da9715..a295cdfed 100644 --- a/.github/workflows/build_scheduled.yml +++ b/.github/workflows/build_scheduled.yml @@ -109,3 +109,28 @@ jobs: name: ndpi-performance path: ndpi-performance-upload retention-days: 7 + + threadsanitizer: + name: Thread Sanitizer (ubuntu-latest) + runs-on: ubuntu-latest + env: + CFLAGS: -Wextra -Werror + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Install Ubuntu Prerequisites + run: | + sudo apt-get update + sudo apt-get install autoconf automake libtool pkg-config gettext flex bison libjson-c libpcap-dev rrdtool librrd-dev parallel + - name: Configure nDPI + run: | + ./autogen.sh --enable-option-checking=fatal --with-thread-sanitizer + - name: Build nDPI + run: | + make -j $(nproc) all + make -j $(nproc) -C example ndpiSimpleIntegration + make -j $(nproc) -C rrdtool + - name: Tests + run: | + NDPI_FORCE_PARALLEL_UTESTS=1 NDPI_SKIP_PARALLEL_BAR=1 ./tests/do.sh -- cgit v1.2.3