Repository navigation
Build Debian packages and binaries on release tags - #1
Merged
Merged
Conversation
build_deb.yml builds below on Ubuntu 22.04 for amd64 and arm64, runs the tests, packages it with cargo deb using the existing metadata, and installs the package in Ubuntu 22.04 and 24.04 containers to check the service is enabled. release.yml runs it on v* tags and attaches the packages and binaries to the GitHub release. cargo-deb only installs the systemd unit when maintainer-scripts is set, so it now points at etc/ alongside unit-scripts.
It builds the binary as well as the deb.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Adds a release pipeline so below can be installed from a GitHub release instead of built from source.
build.ymlbuilds on Ubuntu 22.04 for amd64 and arm64 (glibc 2.35), runs the tests with the same cgroup2 skips asci.yml, packages withcargo debusing the existing[package.metadata.deb], and installs the package in Ubuntu 22.04 and 24.04 containers to checkbelow --versionand thatbelow.serviceis enabled. Runs onworkflow_dispatchor fromrelease.yml.release.ymlruns onv*tags and attaches the.debfiles and binaries to the release.scripts/package_deb.shversions the package fromgit describeagainst thev<crate version>tag, so builds after 0.11.0 are0.11.0+git<n>.<sha>.maintainer-scriptsis set in the deb metadata; cargo-deb needs it for the systemd unit to be packaged and enabled.docs/building.mddescribes the packages.