Sonarcloud analysis of C++ in GitHub Actions

Thank you @necto for your reply, that did indeed fix the issue.

As a note, I don’t think the Cache SonarCloud packages will do anything without checking the results of cache hits. That is, I think the main.yml file given will always download and unzip sonar-scanner and build-wrapper. Thanks to your guide, I do have a working analysis file that does the right thing for cached SonarCloud packages:

Note that because the download/unzip steps are conditional, a separate step is required to set $GITHUB_PATH to the correct values whether or not there’s a cache hit.

The next trick is to get Code Coverage working. I have this working with Travis-CI and CodeCov, but I am not sure of the correct values for SonarCloud.

Thanks for the speedy replies, SonarCloud and SonarLint have been quite useful in catching mistakes other scanners have not.

Best, Adam