rustls / rustls-ffi

Use Rustls from any language
Other
124 stars 31 forks source link

ci: explicitly pin cbindgen version for diff check. #335

Closed cpu closed 1 year ago

cpu commented 1 year ago

This branch installs an explicitly pinned version of cbindgen before performing the diff check of the ensure-header-updated workflow step.

Previously we used the version of cbindgen that was installed on the base GitHub runner image, which can be hard to match to the version used in local development and may change out from under us.

Since there can be non-semantic differences in output between point releases of cbindgen that will fail the diff check it's important developers can predict the exact version that will used in CI in order to match it when generating an updated .h locally.