Skip to content

Commit 574d53e

Browse files
committed
kcov: Install deps
1 parent 3902a5a commit 574d53e

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -45,24 +45,23 @@ jobs:
4545
- name: Test on Rust ${{ matrix.toolchain }}
4646
if: ${{ matrix.build-net-tokio }} != true
4747
run: RUSTFLAGS="-C link-dead-code" cargo test --verbose -p lightning
48+
- name: Install deps for kcov
49+
if: ${{ matrix.coverage }}
50+
run: sudo apt install binutils-dev libcurl4-openssl-dev zlib1g-dev libdw-dev libiberty-dev
4851
- name: Install kcov
4952
if: ${{ matrix.coverage }}
5053
run: |
5154
wget https://github.com/SimonKagstrom/kcov/archive/master.tar.gz
5255
tar xzf master.tar.gz
53-
cd kcov-master && mkdir build && cd build # ./kcov-master/build
54-
cmake .. && make
56+
cd kcov-master && mkdir build && cd build
57+
cmake ..
58+
make
5559
make install DESTDIR=../../kcov-build
56-
cd ../.. && rm -rf kcov-master
57-
ls ./
58-
ls ./kcov-build
59-
ls ./kcov-build/usr
60-
ls ./kcov-build/usr/local
61-
ls ./kcov-build/usr/local/bin
60+
cd ../.. && rm -rf kcov-master master.tar.gz
61+
ls -R ./kcov-build
6262
- name: Upload coverage
6363
if: ${{ matrix.coverage }}
6464
run: |
65-
ls
6665
for file in target/debug/lightning-*; do
6766
[ -x "${file}" ] || continue;
6867
mkdir -p "target/cov/$(basename $file)";

0 commit comments

Comments
 (0)