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>
Reviewed-by: Janne Peltonen <janne.peltonen@nokia.com>
Reviewed-by: Matias Elo <matias.elo@nokia.com>
  • Loading branch information
JereLeppanen authored and MatiasElo committed Apr 12, 2024
1 parent 3d92357 commit 7321f30
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 7321f30

Please sign in to comment.