mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-30 11:17:08 -05:00
39 lines
727 B
YAML
39 lines
727 B
YAML
|
name: Sanitizer
|
||
|
|
||
|
on:
|
||
|
push:
|
||
|
paths-ignore:
|
||
|
- 'README.md'
|
||
|
- 'doc/**'
|
||
|
pull_request:
|
||
|
paths-ignore:
|
||
|
- 'README.md'
|
||
|
- 'doc/**'
|
||
|
|
||
|
jobs:
|
||
|
sanitizer:
|
||
|
strategy:
|
||
|
fail-fast: false
|
||
|
matrix:
|
||
|
cxx: [g++, clang++]
|
||
|
sanitizer: [address, undefined]
|
||
|
|
||
|
runs-on: ubuntu-latest
|
||
|
|
||
|
env:
|
||
|
CXX: ${{ matrix.cxx }}
|
||
|
|
||
|
steps:
|
||
|
- uses: actions/checkout@v2
|
||
|
|
||
|
- run: cmake -E make_directory build
|
||
|
|
||
|
- working-directory: build/
|
||
|
run: cmake $GITHUB_WORKSPACE -DPEGTL_BUILD_EXAMPLES=OFF -DCMAKE_CXX_FLAGS="-fsanitize=${{ matrix.sanitizer }}"
|
||
|
|
||
|
- working-directory: build/
|
||
|
run: cmake --build .
|
||
|
|
||
|
- working-directory: build/
|
||
|
run: ctest --output-on-failure
|