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

Generate source package tarball when using SOURCES class #215

Merged
merged 1 commit into from
Dec 18, 2024
Merged

Conversation

mika
Copy link
Member

@mika mika commented Dec 18, 2024

Even with the smaller grml-small builds we end up with >1k source files inside the grml_sources directory. We don't want this for our daily builds. But also for our release builds we prefer to have one single build artifact which we can pass within our build pipeline.

Example:

  # grml-live [...] -c GRMLBASE,GRML_SMALL,AMD64,SOURCES -o /home/mika/build/grml-live-2024-12 -v 2024.12-1

Then we generate grml_2024.12-1-sources.tar + grml_2024.12-1-sources.tar.sha256 inside build directory /home/mika/build/grml-live-2024-12/.

Underlying command line for this then being:

  tar -C /home/mika/build/grml-live-2024-12 -cf /home/mika/build/grml-live-2024-12/grml_2024.12-1-sources.tar grml_sources

FTR: as of commit 87524f9 we no longer re-use the source directory with grml-live runs, so we could even remove the grml_sources directory automatically, but we decided to look into this only once we're further reworking the directory layout of our build artifacts.

Even with the smaller grml-small builds we end up with >1k source files
inside the grml_sources directory. We don't want this for our daily
builds. But also for our release builds we prefer to have one single
build artifact which we can pass within our build pipeline.

Example:

  # grml-live [...] -c GRMLBASE,GRML_SMALL,AMD64,SOURCES -o /home/mika/build/grml-live-2024-12 -v 2024.12-1

Then we generate grml_2024.12-1-sources.tar + grml_2024.12-1-sources.tar.sha256
inside build directory /home/mika/build/grml-live-2024-12/.

Underlying command line for this then being:

  tar -C /home/mika/build/grml-live-2024-12 -cf /home/mika/build/grml-live-2024-12/grml_2024.12-1-sources.tar grml_sources

FTR: as of commit 87524f9
we no longer re-use the source directory with grml-live runs,
so we could even remove the grml_sources directory automatically, but
we decided to look into this only once we're further reworking the
directory layout of our build artifacts.
@mika mika merged commit 94e6140 into master Dec 18, 2024
12 checks passed
@zeha zeha deleted the mika/sources branch December 18, 2024 15:48
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