From 8b7c57a8b15361d2b710c2ba461331e43dafcc93 Mon Sep 17 00:00:00 2001 From: Yann Collet Date: Thu, 8 Sep 2022 15:35:39 -0700 Subject: attempt to enable ubsan tests in CI --- .github/workflows/ci.yml | 24 ++++++------------------ 1 file changed, 6 insertions(+), 18 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7a9bda2..adeaccc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -396,25 +396,18 @@ jobs: lz4-ubsan-x64: name: Linux x64 ubsan runs-on: ubuntu-latest - env: # Set environment variables - FIXME__LZ4_CI_IGNORE : ' echo Error. But we ignore it for now.' steps: - uses: actions/checkout@v3 # https://github.com/actions/checkout - name: ubsan - ######################################################### - # For now, we ignore the exit code of `make usan`. - # See "Known issues / lz4-ubsan-x64" in README.md - # When we'll resolve this issue, remove "|| $FIXME__LZ4_CI_IGNORE" - ######################################################### - run: make V=1 clean usan MOREFLAGS='-Wcomma -Werror' || $FIXME__LZ4_CI_IGNORE + run: | + make clean + make V=1 usan lz4-ubsan-x86: name: Linux x86 ubsan runs-on: ubuntu-latest - env: # Set environment variables - FIXME__LZ4_CI_IGNORE : ' echo Error. But we ignore it for now.' steps: - uses: actions/checkout@v3 # https://github.com/actions/checkout @@ -425,19 +418,14 @@ jobs: sudo apt-get install lib32gcc-11-dev - name: ubsan32 - ######################################################### - # For now, we ignore the exit code of `make usan32`. - # See "Known issues / lz4-ubsaan-x86" in README.md. - # When we'll resolve this issue, remove "|| $FIXME__LZ4_CI_IGNORE" - ######################################################### - run: CC=clang make V=1 clean usan32 MOREFLAGS='-Wcomma -Werror' || $FIXME__LZ4_CI_IGNORE + run: | + make clean + CC=clang make V=1 usan32 lz4-asan-x64: name: Linux x64 ASAN runs-on: ubuntu-latest - env: # Set environment variables - FIXME__LZ4_CI_IGNORE : ' echo Error. But we ignore it for now.' steps: - uses: actions/checkout@v3 # https://github.com/actions/checkout -- cgit v0.12