forked from AIDASoft/podio
-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (55 loc) · 1.86 KB
/
sanitizers.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
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@v4
- uses: cvmfs-contrib/github-action-cvmfs@v4
- 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 \
-DENABLE_JULIA=ON \
-G Ninja ..
echo "::endgroup::"
echo "::group::Build"
ninja -k0
echo "::endgroup::"
echo "::group::Julia StaticArrays Package Install"
julia -e 'import Pkg; Pkg.add("StaticArrays")'
echo "::endgroup"
echo "::group::Run tests"
ctest --output-on-failure
echo "::endgroup::"