lcov-action
This action let you to run lcov with the needed parameters, by default it uses gcov 11 (version 11.2.0)
Inputs
gcov_tool
Required Path to the gcov binary, by default /usr/bin/gcov
.
It's possible to use /usr/bin/gcov-9
and /usr/bin/gcov-10
and /usr/bin/gcov-11
and /usr/bin/gcov-12
.
remove_patterns
Required Comma separated list of simple name-matching patterns to remove from the build, can be empty.
output_lcov_info
Required Output path for the lcov info, by default coverage.info
build_dir
Required Build directory (see lcov man for option -d)
base_dir
Required Base directory (see lcov man for option -b)
Outputs
No outputs.
Example usage
gcov 11 (version 11.2.0) - default
uses: danielealbano/lcov-action@v3
gcov 9 (version 9.3.0)
uses: danielealbano/lcov-action@v3
with:
gcov_tool: /usr/bin/gcov-9
gcov 10 (version 10.3.0)
uses: danielealbano/lcov-action@v3
with:
gcov_tool: /usr/bin/gcov-10
gcov 12 (version 12.0.1)
uses: danielealbano/lcov-action@v3
with:
gcov_tool: /usr/bin/gcov-12
Remove the 3rdparties and benchmarks subfolder (and any path that would contain these two) from the code coverage
uses: danielealbano/lcov-action@v3
with:
remove_patterns: 3rdparties,benchmarks
Author
Copyright (C) 2020-2022 Daniele Salvatore Albano
License
BSD 2-Clause License