Skip to content

Commit

Permalink
common: add UBSAN build
Browse files Browse the repository at this point in the history
  • Loading branch information
osalyk committed Jul 21, 2023
1 parent c8d311a commit 4466953
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/scan_ubsan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Run UndefinedBehaviorSanitizer
name: UBSAN

on:
workflow_dispatch:
workflow_call:

env:
GITHUB_REPO: pmem/pmdk
DOCKER_REPO: ghcr.io/pmem/pmdk
HOST_WORKDIR: /home/runner/work/pmdk/pmdk
WORKDIR: utils/docker
PMDK_CC: gcc
PMDK_CXX: g++
MAKE_PKG: 0
SRC_CHECKERS: 0
OS: ubuntu
OS_VER: 22.04
UBSAN: 1
FAULT_INJECTION: 1

jobs:
linux:
name: Linux
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
build: ['debug', 'nondebug']
steps:
- name: Clone the git repo
uses: actions/checkout@v3

- name: Pull the image
run: cd $WORKDIR && ./pull-or-rebuild-image.sh

- name: Build libraries with Undefined Behavior Sanitizer and run tests
env:
TEST_BUILD: ${{ matrix.build }}
run: cd $WORKDIR && ./build-CI.sh
3 changes: 3 additions & 0 deletions .github/workflows/scans.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,6 @@ jobs:
call-documentation:
uses: ./.github/workflows/scan_documentation.yml
name: Documentation
call-ubsan:
uses: ./.github/workflows/scan_ubsan.yml
name: UBSAN

0 comments on commit 4466953

Please sign in to comment.