Skip to content

Commit 2c1c86a

Browse files
committed
docker sanitizer back ON + new matrix entry DebugCov
1 parent b9bcbee commit 2c1c86a

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,22 +16,27 @@ jobs:
1616
matrix:
1717
os: [ubuntu-24.04, ubuntu-24.04-arm]
1818
compiler: [ [clang++-19, clang-19, "clang-19 libclang-rt-19-dev"] ]
19-
build: [ Debug, Release, DebugLibdeps ]
19+
build: [ Debug, Release, DebugLibdeps, DebugCov ]
2020
include:
2121
- build: Debug
2222
cmake_build_type: Debug
23-
flags: -DPHASAR_ENABLE_SANITIZERS=ON -DCODE_COVERAGE=ON
23+
flags: -DPHASAR_ENABLE_SANITIZERS=ON
2424
- build: Release
2525
cmake_build_type: Release
2626
flags: -DPHASAR_ENABLE_DYNAMIC_LOG=OFF -DPHASAR_BUILD_DYNLIB=ON
2727
- build: DebugLibdeps
2828
cmake_build_type: Debug
2929
flags: -DPHASAR_DEBUG_LIBDEPS=ON -DBUILD_SHARED_LIBS=ON
30+
- build: DebugCov
31+
cmake_build_type: Debug
32+
flags: -DCODE_COVERAGE=ON
3033
exclude:
3134
- os: ubuntu-24.04-arm
3235
build: Debug
3336
- os: ubuntu-24.04-arm
3437
build: DebugLibdeps
38+
- os: ubuntu-24.04-arm
39+
build: DebugCov
3540

3641
continue-on-error: false
3742
steps:
@@ -79,14 +84,14 @@ jobs:
7984
cmake --build ./build --target run_sample_programs
8085
8186
- name: Check test coverage and generate HTML report
82-
if: matrix.build == 'Debug'
87+
if: matrix.build == 'DebugCov'
8388
shell: bash
8489
run: |
8590
cmake --build ./build --target ccov-all
8691
mv ./build/ccov/all-merged/index.html ./build/ccov/all-merged/coverage.html
8792
8893
- name: Upload coverage HTML report artifact
89-
if: matrix.build == 'Debug'
94+
if: matrix.build == 'DebugCov'
9095
uses: actions/upload-artifact@v4
9196
with:
9297
name: CoverageReport

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ RUN --mount=type=bind,source=.,target=/usr/src/phasar,rw \
1818
cmake -S . -B cmake-build/Release \
1919
-DCMAKE_BUILD_TYPE=Release \
2020
-DPHASAR_TARGET_ARCH="" \
21-
-DPHASAR_ENABLE_SANITIZERS=OFF \
21+
-DPHASAR_ENABLE_SANITIZERS=ON \
2222
-DBUILD_PHASAR_CLANG=ON \
2323
-DPHASAR_USE_Z3=ON \
2424
-DPHASAR_BUILD_UNITTESTS=$RUN_TESTS \

0 commit comments

Comments
 (0)