Skip to content

Commit

Permalink
CI/CD: Switch from gzip to XZ for archive compression
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
cmuellner committed Nov 1, 2024
1 parent 7d8e9ad commit 1f2eb60
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}
Expand Down Expand Up @@ -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
Expand All @@ -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
4 changes: 2 additions & 2 deletions .github/workflows/nightly-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down

0 comments on commit 1f2eb60

Please sign in to comment.