Skip to content

Commit 143e9dc

Browse files
aRustyDevclaude
andcommitted
fix: Install kcov from source in coverage workflow
- kcov is not available in default Ubuntu repositories - Build kcov v42 from source with all required dependencies - This should resolve the coverage workflow failure Fixes coverage workflow installation issue 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent a3c7785 commit 143e9dc

1 file changed

Lines changed: 23 additions & 1 deletion

File tree

.github/workflows/coverage.yml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,29 @@ jobs:
2222
- name: Install dependencies
2323
run: |
2424
sudo apt-get update
25-
sudo apt-get install -y bats kcov
25+
sudo apt-get install -y bats
26+
27+
# Install kcov dependencies
28+
sudo apt-get install -y \
29+
cmake \
30+
binutils-dev \
31+
libcurl4-openssl-dev \
32+
zlib1g-dev \
33+
libdw-dev \
34+
libiberty-dev
35+
36+
# Build and install kcov from source
37+
cd /tmp
38+
wget https://github.com/SimonKagstrom/kcov/archive/v42.tar.gz
39+
tar xzf v42.tar.gz
40+
cd kcov-42
41+
mkdir build && cd build
42+
cmake ..
43+
make -j$(nproc)
44+
sudo make install
45+
46+
# Verify kcov installation
47+
kcov --version
2648
2749
# Install bashcov for additional coverage
2850
sudo gem install bashcov

0 commit comments

Comments
 (0)