Move podio_PYTHON_DIR to the top level CMakeLists #927
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: sanitizers | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
build-and-test: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
compiler: [gcc11, clang12] | |
# Since Leak is usually part of Address, we do not run it separately in | |
# CI. Keeping Address and Undefined separate for easier debugging | |
sanitizer: [Thread, | |
Address, | |
Undefined] | |
# Memory sanitizer triggers on almost anything and some of the things | |
# are outside our control. Additionally, there seem to be | |
# inconsistencies between local and CI runs, so disabling this for now | |
# | |
# include: | |
# # Memory sanitizer is not available for gcc | |
# - compiler: clang10 | |
# sanitizer: MemoryWithOrigin | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: cvmfs-contrib/github-action-cvmfs@v3 | |
- uses: aidasoft/run-lcg-view@v4 | |
with: | |
release-platform: LCG_102/x86_64-centos7-${{ matrix.compiler }}-opt | |
run: | | |
echo "::group::Run CMake" | |
mkdir build | |
cd build | |
cmake -DCMAKE_BUILD_TYPE=Debug \ | |
-DUSE_SANITIZER=${{ matrix.sanitizer }} \ | |
-DCMAKE_CXX_STANDARD=17 \ | |
-DCMAKE_CXX_FLAGS=" -fdiagnostics-color=always " \ | |
-DUSE_EXTERNAL_CATCH2=OFF \ | |
-DENABLE_SIO=ON \ | |
-G Ninja .. | |
echo "::endgroup::" | |
echo "::group::Build" | |
ninja -k0 | |
echo "::endgroup::" | |
echo "::group::Run tests" | |
ctest --output-on-failure | |
echo "::endgroup::" |