Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cleanup(gh-actions/build-debian): Unify steps common tasks and make apt faster #57

Merged
merged 11 commits into from
Jan 23, 2025

Conversation

3v1n0
Copy link
Contributor

@3v1n0 3v1n0 commented Dec 18, 2024

Simplify the action and move the common docker steps in a script that is shared by all the steps.

@3v1n0 3v1n0 requested a review from didrocks as a code owner December 18, 2024 18:49
@3v1n0 3v1n0 force-pushed the cleanup-build-deb branch 3 times, most recently from 7926742 to c06d606 Compare December 18, 2024 19:18
@3v1n0 3v1n0 requested review from adombeck and jbicha December 18, 2024 19:19
@3v1n0 3v1n0 force-pushed the cleanup-build-deb branch from 1e197c8 to c9b36f6 Compare January 22, 2025 22:14
@3v1n0
Copy link
Contributor Author

3v1n0 commented Jan 22, 2025

@didrocks can you give this a look please? :)

@3v1n0 3v1n0 force-pushed the cleanup-build-deb branch from 140d56a to 020cdd5 Compare January 22, 2025 23:01
Copy link
Collaborator

@didrocks didrocks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I only have 3 small nitpicks, but should be good to go then!

@3v1n0 3v1n0 requested a review from didrocks January 23, 2025 16:35
Copy link
Collaborator

@didrocks didrocks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good work!

@3v1n0 3v1n0 force-pushed the cleanup-build-deb branch from 9a96a9b to 140bfb6 Compare January 23, 2025 16:47
@3v1n0
Copy link
Contributor Author

3v1n0 commented Jan 23, 2025

Cool, FYI I've dropped the last commit since it got upstreamed at canonical/setup-lxd#25 :)

3v1n0 added 11 commits January 23, 2025 19:19
… script

We can just use a script from this repo in order to do the common steps
that each container run requires
No need to copy the script around, we can just reuse the one from this
repository, since it's now in the action path
In this way we can avoid issues in case the variable contains quotes
… installation

We can save some time by avoiding apt to install man pages and parsing
them to build the man-db.

Plus, locales aren't normally required unless they're explicit
build-dependencies of a package (that may requires them for testing some
special case).
eatmydata allows faster builds and it's something that is used also by
default by mk-sbuild these days, so enable it by default here too.
@3v1n0 3v1n0 force-pushed the cleanup-build-deb branch from 140bfb6 to c8f3aee Compare January 23, 2025 18:20
@3v1n0 3v1n0 merged commit 9d85c24 into canonical:main Jan 23, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants