Skip to content

Improve source archive compression in GitHub Actions#1694

Merged
CuriousTommy merged 1 commit intodarlinghq:masterfrom
Integral-Tech:tarball-compress
Mar 3, 2026
Merged

Improve source archive compression in GitHub Actions#1694
CuriousTommy merged 1 commit intodarlinghq:masterfrom
Integral-Tech:tarball-compress

Conversation

@Integral-Tech
Copy link
Contributor

@Integral-Tech Integral-Tech commented Mar 3, 2026

  • Switch compression format from gzip to xz
  • Use xz maximum compression level (-9e) to minimize archive size
Compression Format Compression Level Size
gzip default (-6) 768 MiB
gzip maximum (-9) 760 MiB
xz maximum (-9e) 486 MiB

The results show xz with maximum compression level cuts the archive size by ~37%.

@Integral-Tech Integral-Tech force-pushed the tarball-compress branch 2 times, most recently from f9610fa to faf5665 Compare March 3, 2026 15:46
- Switch compression format from gzip to xz
- Use xz maximum compression level (`-9e`) to minimize archive size
Copy link
Contributor

@CuriousTommy CuriousTommy left a comment

Choose a reason for hiding this comment

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

LGMT, but with one side note...

One downside with this change is that it will take longer to compress the source code (6 minutes vs 32 minutes).

Since building the deb file will take around 2 hours, I'm okay with this increased time (provided that the amount of time to compress the file doesn't exceed the amount of time to build the deb package).

@CuriousTommy CuriousTommy merged commit b737f0c into darlinghq:master Mar 3, 2026
3 checks passed
@Integral-Tech Integral-Tech deleted the tarball-compress branch March 4, 2026 02:31
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