This should be straightforward. There is an example un LINUX using the `gcovr`tool [here](https://github.com/sonarsource-cfamily-examples/linux-cmake-gcovr-gh-actions-sc/blob/main/.github/workflows/build.yml).