From 1f2eb606cddede01f54206666c10508c391163d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christoph=20M=C3=BCllner?= Date: Sat, 2 Nov 2024 00:34:39 +0100 Subject: [PATCH] CI/CD: Switch from gzip to XZ for archive compression MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit To reduce the disk space consumption and upload/download times, let's switch to a better archrive compression algorithm. XZ should be popular enough to not cause many complaints about this. Signed-off-by: Christoph Müllner --- .github/workflows/build.yaml | 8 ++++---- .github/workflows/nightly-release.yaml | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 532332b2990..072203d9051 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -63,7 +63,7 @@ jobs: sudo du -hs / 2> /dev/null || true - name: tarball build - run: tar czvf riscv.tar.gz -C /opt/ riscv/ + run: XZ_OPT="--threads=0 -6e" tar cJf riscv.tar.xz -C /opt/ riscv/ - name: generate prebuilt toolchain name id: toolchain-name-generator @@ -84,7 +84,7 @@ jobs: - uses: actions/upload-artifact@v4 with: name: ${{ steps.toolchain-name-generator.outputs.TOOLCHAIN_NAME }} - path: riscv.tar.gz + path: riscv.tar.xz test-sim: runs-on: ${{ matrix.os }} @@ -152,7 +152,7 @@ jobs: sudo make report-${{ matrix.mode }} -j $(nproc) - name: tarball build - run: tar czvf riscv.tar.gz -C /opt/ riscv/ + run: XZ_OPT="--threads=0 -6e" tar cJf riscv.tar.xz -C /opt/ riscv/ - name: generate prebuilt toolchain name id: toolchain-name-generator @@ -173,4 +173,4 @@ jobs: - uses: actions/upload-artifact@v4 with: name: ${{ steps.toolchain-name-generator.outputs.TOOLCHAIN_NAME }} - path: riscv.tar.gz + path: riscv.tar.xz diff --git a/.github/workflows/nightly-release.yaml b/.github/workflows/nightly-release.yaml index 5f97d9b2860..d3277cdcc5f 100644 --- a/.github/workflows/nightly-release.yaml +++ b/.github/workflows/nightly-release.yaml @@ -96,7 +96,7 @@ jobs: sudo du -hs / 2> /dev/null || true - name: tarball build - run: tar czvf riscv.tar.gz -C /opt/ riscv/ + run: XZ_OPT="--threads=0 -6e" tar cJf riscv.tar.xz -C /opt/ riscv/ - name: generate prebuilt toolchain name id: toolchain-name-generator @@ -117,7 +117,7 @@ jobs: - uses: actions/upload-artifact@v4 with: name: ${{ steps.toolchain-name-generator.outputs.TOOLCHAIN_NAME }} - path: riscv.tar.gz + path: riscv.tar.xz create-release: