From d9183d2f04b03cbdaf9e11bf05f7ce66111123e5 Mon Sep 17 00:00:00 2001 From: "Max P." Date: Sun, 15 Jun 2025 16:49:07 +0200 Subject: [PATCH] feat(workflows): add zstd compression for build artifacts - Introduce zstd compression for build artifacts to reduce file size - Generate and upload SHA256 checksum for compressed archives - Enhance artifact handling in release workflows --- .gitea/workflows/upload-assets.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.gitea/workflows/upload-assets.yml b/.gitea/workflows/upload-assets.yml index f423026..f19b8a2 100644 --- a/.gitea/workflows/upload-assets.yml +++ b/.gitea/workflows/upload-assets.yml @@ -43,6 +43,22 @@ jobs: - name: Upload SHA256 for ${{ matrix.target }}-${{ matrix.arch }} run: .gitea/scripts/upload-asset.sh ./dist/systemd-timer-${{ matrix.target }}-${{ matrix.arch }}.sha256 systemd-timer-${{ matrix.target }}-${{ matrix.arch }}.sha256 + - name: Create zstd compressed archive + run: | + FILE="./dist/systemd-timer-${{ matrix.target }}-${{ matrix.arch }}" + zstd -q -19 -T0 -f "$FILE" -o "$FILE.zst" + + - name: Generate SHA256 for zstd compressed archive + run: | + FILE="./dist/systemd-timer-${{ matrix.target }}-${{ matrix.arch }}.zst" + sha256sum "$FILE" > "$FILE.sha256" + + - name: Upload zstd compressed archive for ${{ matrix.target }}-${{ matrix.arch }} + run: .gitea/scripts/upload-asset.sh ./dist/systemd-timer-${{ matrix.target }}-${{ matrix.arch }}.zst systemd-timer-${{ matrix.target }}-${{ matrix.arch }}.zst + + - name: Upload SHA256 for zstd compressed archive + run: .gitea/scripts/upload-asset.sh ./dist/systemd-timer-${{ matrix.target }}-${{ matrix.arch }}.zst.sha256 systemd-timer-${{ matrix.target }}-${{ matrix.arch }}.zst.sha256 + - name: Run Releases Sync Action uses: https://git.0xmax42.io/actions/releases-sync@main with: