Skip to content

Commit d074d7d

Browse files
authored
[#258] Add GCov
1 parent 8946ecc commit d074d7d

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

.github/workflows/mc_dc_coverage.yml

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -33,29 +33,29 @@ jobs:
3333
apt-get update
3434
apt-get install -y \
3535
lcov libcurl4-openssl-dev libmariadb-dev libmariadb-dev-compat \
36-
python3 python3-pip python3-venv gcovr bc pipx wget \
36+
python3 python3-pip python3-venv gcov gcovr bc pipx wget \
3737
software-properties-common
38-
# Add the official LLVM repository and install Clang 19
39-
wget https://apt.llvm.org/llvm.sh
40-
chmod +x llvm.sh
41-
./llvm.sh 19
42-
apt-get install -y clang-19 libclang-19-dev python3-clang-19
43-
apt-get remove -y libclang-14-dev libclang-common-14-dev libclang1-14 libllvm14 python3-clang-14
44-
# Ensure Clang 19 is the default
45-
update-alternatives --install /usr/bin/clang clang /usr/lib/llvm-19/bin/clang 100
46-
update-alternatives --install /usr/bin/clang++ clang++ /usr/lib/llvm-19/bin/clang++ 100
47-
pipx install --system-site-packages mcdc-checker
48-
pipx ensurepath
49-
- name: Verify Clang Installation
50-
run: |
51-
echo "Checking clang binary..."
52-
which clang || { echo "clang not found in PATH"; exit 1; }
53-
echo "clang version:"
54-
clang --version
55-
- name: Verify Clang Python Bindings
56-
run: |
57-
echo "Testing Clang Python bindings..."
58-
python3 -c "import clang.cindex; print('Clang bindings are working')"
38+
# # Add the official LLVM repository and install Clang 19
39+
# wget https://apt.llvm.org/llvm.sh
40+
# chmod +x llvm.sh
41+
# ./llvm.sh 19
42+
# apt-get install -y clang-19 libclang-19-dev python3-clang-19
43+
# apt-get remove -y libclang-14-dev libclang-common-14-dev libclang1-14 libllvm14 python3-clang-14
44+
# # Ensure Clang 19 is the default
45+
# update-alternatives --install /usr/bin/clang clang /usr/lib/llvm-19/bin/clang 100
46+
# update-alternatives --install /usr/bin/clang++ clang++ /usr/lib/llvm-19/bin/clang++ 100
47+
# pipx install --system-site-packages mcdc-checker
48+
# pipx ensurepath
49+
# - name: Verify Clang Installation
50+
# run: |
51+
# echo "Checking clang binary..."
52+
# which clang || { echo "clang not found in PATH"; exit 1; }
53+
# echo "clang version:"
54+
# clang --version
55+
# - name: Verify Clang Python Bindings
56+
# run: |
57+
# echo "Testing Clang Python bindings..."
58+
# python3 -c "import clang.cindex; print('Clang bindings are working')"
5959
- name: Build with Coverage Flags
6060
run: |
6161
export CFLAGS="-fprofile-arcs -ftest-coverage -fcondition-coverage -g"

0 commit comments

Comments
 (0)