commit:     654de6dd526dc660faadee393f9de7bfc049c23f
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Jan  6 06:43:34 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Jan  6 06:55:04 2023 +0000
URL:        https://gitweb.gentoo.org/proj/pax-utils.git/commit/?id=654de6dd

CI: Add ASAN, UBSAN to CI

Signed-off-by: Sam James <sam <AT> gentoo.org>

 .github/workflows/build-test-ci.yml | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/.github/workflows/build-test-ci.yml 
b/.github/workflows/build-test-ci.yml
index 52c0ee1..18c13f0 100644
--- a/.github/workflows/build-test-ci.yml
+++ b/.github/workflows/build-test-ci.yml
@@ -3,12 +3,7 @@
 
 name: Build+Test CI
 
-on:
-  push:
-    branches: [master, gh-actions]
-    tags: [v*]
-  pull_request:
-    types: [created, opened, edited]
+on: [pull_request, push]
 
 jobs:
   make:
@@ -17,11 +12,13 @@ jobs:
         os: [ubuntu-latest]
         cc: [gcc, clang]
         bb: [meson, muon]
+        sanitizer: [none, address, undefined]
       fail-fast: false
     runs-on: ${{ matrix.os }}
     env:
       CC: ${{ matrix.cc }}
       BB: ${{ matrix.bb }}
+      SANITIZER: ${{ matrix.sanitizer }}
     steps:
     - name: Install dependencies
       run: |
@@ -53,6 +50,7 @@ jobs:
                     -Dbuild_manpages=disabled \
                     -Dtests=true \
                     -Duse_fuzzing=true \
+                    -Db_sanitize="${SANITIZER}" \
                     build
         ninja -C build
         ( cd build && "$BB" test; )

Reply via email to