Add undefined behavior sanitizer job

pull/3171/head
Kim Kulling 2020-04-28 14:41:44 +02:00 committed by GitHub
parent 43df1d676a
commit 8240a11e15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 25 additions and 1 deletions

View File

@ -58,7 +58,31 @@ jobs:
run: cd build/bin && ./unit
shell: bash
sanitizer:
adress-sanitizer:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: lukka/get-cmake@latest
- uses: ilammy/msvc-dev-cmd@v1
- uses: lukka/set-shell-env@v1
with:
CXX: clang++
CC: clang
- name: configure and build
uses: lukka/run-cmake@v2
with:
cmakeListsOrSettingsJson: CMakeListsTxtAdvanced
cmakeListsTxtPath: '${{ github.workspace }}/CMakeLists.txt'
cmakeAppendedArgs: '-GNinja -DCMAKE_BUILD_TYPE=Release -DASSIMP_ASAN=ON'
buildWithCMakeArgs: '-- -v'
buildDirectory: '${{ github.workspace }}/build/'
- name: test
run: cd build/bin && ./unit
shell: bash
undefined-behavior-sanitizer:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2