ci: Switch to xz compression for better size reduction

- Replace gzip with xz -9 compression for more aggressive compression
- xz typically achieves 60-80% size reduction vs gzip's 10-20%
- Change artifact path from citron.AppImage.gz to citron.AppImage.xz
- This should reduce 105MB AppImage to ~20-40MB compressed
- Fixes the '413 Request Entity Too Large' error for artifact upload
This commit is contained in:
Zephyron
2025-09-20 20:51:43 +10:00
parent b8a677c3c1
commit 442464d7c5

View File

@@ -77,13 +77,13 @@ build-linux:
- echo "Total artifact size:"
- du -sh citron.AppImage build/bin/citron 2>/dev/null || echo "Cannot measure artifact sizes"
- echo "Compressing AppImage for upload..."
- gzip -9 citron.AppImage
- ls -la citron.AppImage.gz
- du -h citron.AppImage.gz
- echo "AppImage compressed successfully"
- xz -9 -c citron.AppImage > citron.AppImage.xz
- ls -la citron.AppImage.xz
- du -h citron.AppImage.xz
- echo "AppImage compressed with xz successfully"
artifacts:
paths:
- citron.AppImage.gz
- citron.AppImage.xz
expire_in: 1 week
when: always
only: