Skip to content

[Misc] Generate and ship compilation database

Description

  • Two new jobs have been added to the build stage.
    • check-compile-commands: it first checks if we are up to date with main, 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 the pgsched and Ninja builds. 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 the apply job.
    • update-compile-commands: modifies the file and pushes the changes.

Checklist

References

Closes #1245 (closed)

Edited by Pablo Oliver Cortes

Merge request reports

Loading