Build Linux packages via CPack #5239
Draft
+485
−14
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
High Level Overview of Change
Use native CMake functionality to produce Linux binary packages during CI runs. Developers will know more quickly if changes broke binary package functionality and have better insight into why and how to resolve them.
Context of Change
The current packages are being produced in Ripple's corp network with legacy code and with significant delay and opacity to development on GitHub.
The current packaging pipeline uses native functionality of Debian and Red Hat systems and as such requires more specialized knowledge than just defining the package contents with CMake.
Using CPack/CMake certainly doesn't remove esoteric knowledge but it at least leverages the same tool already used to build
rippled
.Type of Change
Before / After
In this PR, the overhead for having Linux packages is about 3 minutes which is at least 90% faster than the current system which most people can't even see.
There will be additional GitHub actions jobs to install and test the packages before being published for public consumption.