Skip to content

Commit

Permalink
github_ci: add address sanitizier run
Browse files Browse the repository at this point in the history
Add a job that compiles using GCC address sanitizer and runs test
cases, on Ubuntu 22.04.

Signed-off-by: Jere Leppänen <jere.leppanen@nokia.com>
  • Loading branch information
JereLeppanen committed Mar 29, 2024
1 parent 3922d28 commit 43e4d1f
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/ci-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -445,3 +445,21 @@ jobs:
-e CONF="${CONF}" $CONTAINER_NAMESPACE/odp-ci-${OS}-${ARCH}-dpdk_21.11 /odp/scripts/ci/check.sh
- if: ${{ failure() }}
uses: ./.github/actions/run-failure-log

Run_sanitizer:
runs-on: ubuntu-20.04
env:
OS: ubuntu_22.04
strategy:
fail-fast: false
matrix:
flags: ['-fsanitize=address']
steps:
- uses: actions/checkout@v4
- run: sudo docker run -i -v `pwd`:/odp --privileged --shm-size 8g -e CC="${CC}" -e ARCH="${ARCH}"
-e CFLAGS="-O0 -g -Wno-error ${{matrix.flags}}"
-e CXXFLAGS="-O0 -g -Wno-error ${{matrix.flags}}"
-e LDFLAGS="-g ${{matrix.flags}}"
$CONTAINER_NAMESPACE/odp-ci-${OS}-${ARCH} /odp/scripts/ci/check.sh
- if: ${{ failure() }}
uses: ./.github/actions/run-failure-log

0 comments on commit 43e4d1f

Please sign in to comment.