Add RPM release workflow and update Makefile #105
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.
This PR introduces a complete RPM package building and publishing automation workflow, enabling the Trustee project to be distributed and installed via RPM packages on Anolis OS 23.
Key Changes
GitHub Actions Workflow
Added
release-rpm.ymlworkflow that automatically builds and publishes RPM packages upon releaseThe workflow consists of four main phases:
Makefile Enhancements
Updated
dist/Makefilewith a newcreate-build-artifactstargetSupports creation of all build artifacts needed for RPM packaging, including:
RPM Build Environment
SPEC File
trustee.specfile defining RPM build specificationsBuild Scripts
build-in-docker.shscript to execute RPM building within containersDocumentation
Usage
Reproducible Builds
This implementation places special emphasis on build reproducibility, ensuring that anyone can generate exactly the same RPM packages as the official releases, thereby enhancing software supply chain security.