Proper caching for CI builds

There’s two different caches to speak of here.

  • Analyzer cache, stored in ~/.sonar/cache, which prevents analyzers from having to be redownloaded on each run
  • Analysis cache, reusing results that are stored on SonarCloud to make analysis faster (not having to reanalyze everything).

This message refers to the latter:

This only works in the context of pull requests right now, not of standalone branch analyses (maybe someday!). As a result, it’s normal that the cache data is empty for your workflow run, as it’s for a branch analysis rather than a pull request analysis.

I hope this helps.

1 Like