[Misc] Generate and ship compilation database
Description
- Two new jobs have been added to the
buildstage.-
check-compile-commands: it first checks if we are up to date withmain, we do this to avoid rebasing problems if the file was also modified on main at some point after the branch was created. Then it removes unnecessary information related to API versioning, more precisely, this string:-DVERSION_API=\\\"5-12624093gitd6273555\\\". It also checks into account specific string for thepgschedandNinjabuilds. If the current file on the branch and the newly generated file do not match the job fails and artifacts are uploaded and will be consumed by theapplyjob. -
update-compile-commands: modifies the file and pushes the changes.
-
Checklist
-
Documentation reflects the changes made. -
Merge Request title is clear, concise, and suitable as a changelog entry. See this link
References
Closes #1245 (closed)
Edited by Pablo Oliver Cortes