From 1ca2c6eb2c3341a7ad462e253e162582cfd60270 Mon Sep 17 00:00:00 2001 From: Tom Hromatka Date: Wed, 30 Jul 2025 18:36:49 +0000 Subject: [PATCH] github: Add a job to build libseccomp using clang Add a Github Actions jobs to build libseccomp with clang rather than gcc. Signed-off-by: Tom Hromatka --- .github/workflows/continuous-integration.yml | 21 ++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 39973891..810e7ae8 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -117,3 +117,24 @@ jobs: with: ignore_words_list: extraversion exclude_file: src/syscalls.csv + + clang: + name: Clang + runs-on: ubuntu-24.04 + env: + CC: clang + CXX: clang++ + + steps: + - name: Checkout from github + uses: actions/checkout@v4 + - name: Initialize libseccomp + uses: ./.github/actions/setup + - name: Build libseccomp + run: | + ./configure --enable-python + make check-build + - name: Run tests + run: | + LIBSECCOMP_TSTCFG_JOBS=0 \ + LIBSECCOMP_TSTCFG_STRESSCNT=5 make check