Skip to content

Releases: danielealbano/lcov-action

v3: Switch to use a pre-built docker image from the github docker registr…

02 May 18:21
ec3d66e
Compare
Choose a tag to compare

lcov-action

Build and Test

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

lcov-action for C/C++ code coverage

15 Oct 15:40
0ee7e89
Compare
Choose a tag to compare

lcov-action

Build and Test

This action let you to run lcov with the needed parameters

Inputs

gcov_tool

Required Path to the gcov binary, by default /usr/bin/gcov.

It's possible to use /usr/bin/gcov-7 and /usr/bin/gcov-8.

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 7 (version 7.5.0)

uses: danielealbano/lcov-action@v1
with:
  gcov_tool: /usr/bin/gcov-7

gcov 8 (version 8.4.0)

uses: danielealbano/lcov-action@v1
with:
  gcov_tool: /usr/bin/gcov-8

gcov 9 (version 9.3.0) - default

uses: danielealbano/lcov-action@v1

Remove the 3rdparties and benchmarks subfolder (and any path that would contain these two) from the code coverage

uses: danielealbano/lcov-action@v1
with:
  remove_patterns: 3rdparties,benchmarks

Author

Copyright (C) 2020-2021 Daniele Salvatore Albano

License

BSD 2-Clause License

lcov-action

23 Jun 10:13
Compare
Choose a tag to compare

lcov-action

Build and Test

This action let you to run lcov with the needed parameters

Inputs

gcov_tool

Required Path to the gcov binary, by default /usr/bin/gcov.

It's possible to use /usr/bin/gcov-7 and /usr/bin/gcov-8.

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

Outputs

No outputs.

Example usage

gcov 7 (version 7.5.0)

uses: daalbano/lcov-action@v1
with:
  gcov_tool: /usr/bin/gcov-7

gcov 8 (version 8.4.0)

uses: daalbano/lcov-action@v1
with:
  gcov_tool: /usr/bin/gcov-8

gcov 9 (version 9.3.0) - default

uses: daalbano/lcov-action@v1

Remove the 3rdparties and benchmarks subfolder (and any path that would contain these two) from the code coverage

uses: daalbano/lcov-action@v1
with:
  remove_patterns: 3rdparties,benchmarks

Author

Copyright (C) 2020-2021 Daniele Salvatore Albano

License

BSD 2-Clause License