From 474786d796a2b6c91a693b98662ab363dfd17433 Mon Sep 17 00:00:00 2001 From: Cory Sanin Date: Thu, 8 May 2025 21:37:01 -0500 Subject: [PATCH] compress published images --- .github/workflows/build.yml | 10 +++++++--- compress-images.sh | 5 +++++ stage4/98-default-wallpaper/00-run.sh | 0 3 files changed, 12 insertions(+), 3 deletions(-) create mode 100755 compress-images.sh mode change 100644 => 100755 stage4/98-default-wallpaper/00-run.sh diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f6cd88b..c57ba0c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,7 +13,7 @@ jobs: build_images: name: Build images runs-on: ubuntu-latest - timeout-minutes: 20 + timeout-minutes: 120 strategy: fail-fast: true env: @@ -46,13 +46,17 @@ jobs: sudo mv deploy/*-arm64-standalone.img deploy/showpieceos-arm64-standalone.img && sudo mv deploy/*-arm64-client.img deploy/showpieceos-arm64-client.img + - name: Compress images + if: startsWith(github.ref, 'refs/tags/v') + run: ./compress-images.sh + - name: Publish client if: startsWith(github.ref, 'refs/tags/v') uses: https://github.com/softprops/action-gh-release@v2 with: tag_name: ${{ github.ref_name }} name: ${{ github.ref_name }} - files: deploy/*-client.img + files: deploy/*-client.img.gz - name: Publish standalone if: startsWith(github.ref, 'refs/tags/v') @@ -60,5 +64,5 @@ jobs: with: tag_name: ${{ github.ref_name }} name: ${{ github.ref_name }} - files: deploy/*-standalone.img + files: deploy/*-standalone.img.gz diff --git a/compress-images.sh b/compress-images.sh new file mode 100755 index 0000000..de5aa50 --- /dev/null +++ b/compress-images.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +for img in "deploy/"*.img; do + gzip -4 -v -k "$img" +done \ No newline at end of file diff --git a/stage4/98-default-wallpaper/00-run.sh b/stage4/98-default-wallpaper/00-run.sh old mode 100644 new mode 100755