fix: use gzip compression for CI artifacts to avoid size limit

Signed-off-by: Zephyron <zephyron@citron-emu.org>
This commit is contained in:
Zephyron
2025-09-21 11:45:41 +10:00
parent a76c3e8808
commit 0c4fc23dcd

View File

@@ -68,15 +68,21 @@ build-linux:
- echo "Total artifact size:" - echo "Total artifact size:"
- du -sh citron.AppImage build/bin/citron 2>/dev/null || echo "Cannot measure artifact sizes" - du -sh citron.AppImage build/bin/citron 2>/dev/null || echo "Cannot measure artifact sizes"
- echo "Compressing AppImage for upload..." - echo "Compressing AppImage for upload..."
- xz -9 -c citron.AppImage > citron.AppImage.xz - gzip -9 -c citron.AppImage > citron.AppImage.gz
- ls -la citron.AppImage.xz - ls -la citron.AppImage.gz
- du -h citron.AppImage.xz - du -h citron.AppImage.gz
- echo "AppImage compressed with xz successfully" - echo "AppImage compressed with gzip successfully"
# Also create a smaller binary-only archive for fallback
- tar -czf citron-binary.tar.gz build/bin/
- ls -la citron-binary.tar.gz
- du -h citron-binary.tar.gz
artifacts: artifacts:
paths: paths:
- citron.AppImage.xz - citron.AppImage.gz
- citron-binary.tar.gz
expire_in: 1 week expire_in: 1 week
when: always when: always
max_size: 200MB
only: only:
- main - main
- master - master
@@ -134,15 +140,21 @@ build-linux-v3:
- echo "Total artifact size:" - echo "Total artifact size:"
- du -sh citron.AppImage build/bin/citron 2>/dev/null || echo "Cannot measure artifact sizes" - du -sh citron.AppImage build/bin/citron 2>/dev/null || echo "Cannot measure artifact sizes"
- echo "Compressing AppImage for upload..." - echo "Compressing AppImage for upload..."
- xz -9 -c citron.AppImage > citron.AppImage.xz - gzip -9 -c citron.AppImage > citron.AppImage.gz
- ls -la citron.AppImage.xz - ls -la citron.AppImage.gz
- du -h citron.AppImage.xz - du -h citron.AppImage.gz
- echo "AppImage compressed with xz successfully" - echo "AppImage compressed with gzip successfully"
# Also create a smaller binary-only archive for fallback
- tar -czf citron-binary.tar.gz build/bin/
- ls -la citron-binary.tar.gz
- du -h citron-binary.tar.gz
artifacts: artifacts:
paths: paths:
- citron.AppImage.xz - citron.AppImage.gz
- citron-binary.tar.gz
expire_in: 1 week expire_in: 1 week
when: always when: always
max_size: 200MB
only: only:
- main - main
- master - master
@@ -200,15 +212,21 @@ build-linux-steamdeck:
- echo "Total artifact size:" - echo "Total artifact size:"
- du -sh citron.AppImage build/bin/citron 2>/dev/null || echo "Cannot measure artifact sizes" - du -sh citron.AppImage build/bin/citron 2>/dev/null || echo "Cannot measure artifact sizes"
- echo "Compressing AppImage for upload..." - echo "Compressing AppImage for upload..."
- xz -9 -c citron.AppImage > citron.AppImage.xz - gzip -9 -c citron.AppImage > citron.AppImage.gz
- ls -la citron.AppImage.xz - ls -la citron.AppImage.gz
- du -h citron.AppImage.xz - du -h citron.AppImage.gz
- echo "AppImage compressed with xz successfully" - echo "AppImage compressed with gzip successfully"
# Also create a smaller binary-only archive for fallback
- tar -czf citron-binary.tar.gz build/bin/
- ls -la citron-binary.tar.gz
- du -h citron-binary.tar.gz
artifacts: artifacts:
paths: paths:
- citron.AppImage.xz - citron.AppImage.gz
- citron-binary.tar.gz
expire_in: 1 week expire_in: 1 week
when: always when: always
max_size: 200MB
only: only:
- main - main
- master - master