Skip to content

Commit 6f43e23

Browse files
committed
Compress release files with zstd.
1 parent cf2ae5f commit 6f43e23

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/release.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ jobs:
4848
- name: Remove .git
4949
run: rm -rf "${name}-${ref}/.git" && ls -laR "${name}-${ref}"
5050

51-
- name: Tar/xz source
52-
run: tar -cvJf "${name}-${ref}.tar.xz" "${name}-${ref}"
51+
- name: Tar/zstd source
52+
run: tar --zstd -cvf "${name}-${ref}.tar.zst" "${name}-${ref}"
5353

5454
- uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # v4.3.4
5555
with:
@@ -124,11 +124,11 @@ jobs:
124124
- name: Check output
125125
run: file "target/${{ matrix.target }}/release/${name}"
126126
- name: Compress
127-
run: cp "target/${{ matrix.target }}/release/${name}" . && tar -cvJf "${name}-${ref}-${{ matrix.target }}.tar.xz" "${name}"
127+
run: cp "target/${{ matrix.target }}/release/${name}" . && tar --zstd -cvf "${name}-${ref}-${{ matrix.target }}.tar.zst" "${name}"
128128
- uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # v4.3.4
129129
with:
130130
name: ${{ matrix.target }}
131-
path: "${{ env.name }}-${{ env.ref }}-${{ matrix.target }}.tar.xz"
131+
path: "${{ env.name }}-${{ env.ref }}-${{ matrix.target }}.tar.zst"
132132

133133
publish_github:
134134
name: Publish [GitHub]
@@ -149,7 +149,7 @@ jobs:
149149
if: startsWith(github.ref, 'refs/tags/')
150150
with:
151151
files: |
152-
*.xz
152+
*.zst
153153
body_path: release-notes.md
154154
make_latest: true
155155
env:

0 commit comments

Comments
 (0)