@@ -34,22 +34,22 @@ jobs:
3434 - run : cargo build --release --target x86_64-apple-darwin
3535 - run : lipo -create -output dotslash target/aarch64-apple-darwin/release/dotslash target/x86_64-apple-darwin/release/dotslash
3636 # Package universal binary
37- - run : tar -czvf " dotslash-macos.tar.gz" dotslash
37+ - run : tar -czvf dotslash-macos.tar.gz --options gzip:compression-level=9 dotslash
3838 shell : bash
3939 # Package architecture-specific binaries
40- - run : tar -czvf " dotslash-macos-arm64.tar.gz" -C target/aarch64-apple-darwin/release dotslash
40+ - run : tar -czvf dotslash-macos-arm64.tar.gz -C target/aarch64-apple-darwin/release --options gzip:compression-level=9 dotslash
4141 shell : bash
42- - run : tar -czvf " dotslash-macos-x86_64.tar.gz" -C target/x86_64-apple-darwin/release dotslash
42+ - run : tar -czvf dotslash-macos-x86_64.tar.gz -C target/x86_64-apple-darwin/release --options gzip:compression-level=9 dotslash
4343 shell : bash
4444 # Upload all binaries
4545 - name : upload release
4646 env :
4747 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
4848 shell : bash
4949 run : |
50- gh release upload "${GITHUB_REF#refs/tags/}" " dotslash-macos.tar.gz"
51- gh release upload "${GITHUB_REF#refs/tags/}" " dotslash-macos-arm64.tar.gz"
52- gh release upload "${GITHUB_REF#refs/tags/}" " dotslash-macos-x86_64.tar.gz"
50+ gh release upload "${GITHUB_REF#refs/tags/}" dotslash-macos.tar.gz
51+ gh release upload "${GITHUB_REF#refs/tags/}" dotslash-macos-arm64.tar.gz
52+ gh release upload "${GITHUB_REF#refs/tags/}" dotslash-macos-x86_64.tar.gz
5353 # TODO(#68): Deprecated; will be removed in a future release!
5454 # Package universal binary
5555 - run : tar -czvf "dotslash-macos.${GITHUB_REF#refs/tags/}.tar.gz" dotslash
@@ -79,12 +79,12 @@ jobs:
7979 - run : cargo test
8080 - run : cargo clippy
8181 - run : cargo build --release
82- - run : tar -czvf " dotslash-ubuntu-22.04.x86_64.tar.gz" -C target/release dotslash
82+ - run : tar -cvf dotslash-ubuntu-22.04.x86_64.tar.gz -I 'gzip -9' -C target/release dotslash
8383 - name : upload release
8484 env :
8585 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
8686 shell : bash
87- run : gh release upload "${GITHUB_REF#refs/tags/}" " dotslash-ubuntu-22.04.x86_64.tar.gz"
87+ run : gh release upload "${GITHUB_REF#refs/tags/}" dotslash-ubuntu-22.04.x86_64.tar.gz
8888 # TODO(#68): Deprecated; will be removed in a future release!
8989 - run : tar -czvf "dotslash-ubuntu-22.04.x86_64.${GITHUB_REF#refs/tags/}.tar.gz" -C target/release dotslash
9090 - name : upload versioned release
@@ -109,7 +109,7 @@ jobs:
109109 - run : cargo build --target aarch64-unknown-linux-gnu --release
110110 env :
111111 CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER : aarch64-linux-gnu-gcc
112- - run : tar -czvf " dotslash-ubuntu-22.04.aarch64.tar.gz" -C target/aarch64-unknown-linux-gnu/release dotslash
112+ - run : tar -cvf dotslash-ubuntu-22.04.aarch64.tar.gz -I 'gzip -9' -C target/aarch64-unknown-linux-gnu/release dotslash
113113 - name : upload release
114114 env :
115115 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
@@ -139,7 +139,7 @@ jobs:
139139 - run : cargo test
140140 - run : cargo clippy
141141 - run : cargo build --target x86_64-unknown-linux-musl --release
142- - run : tar -czvf " dotslash-linux-musl.x86_64.tar.gz" -C target/x86_64-unknown-linux-musl/release dotslash
142+ - run : tar -cvf dotslash-linux-musl.x86_64.tar.gz -I 'gzip -9' -C target/x86_64-unknown-linux-musl/release dotslash
143143 - name : upload release
144144 env :
145145 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
@@ -167,7 +167,7 @@ jobs:
167167 crate : cross
168168 version : latest
169169 - run : cross build --target aarch64-unknown-linux-musl --release
170- - run : tar -czvf " dotslash-linux-musl.aarch64.tar.gz" -C target/aarch64-unknown-linux-musl/release dotslash
170+ - run : tar -cvf dotslash-linux-musl.aarch64.tar.gz -I 'gzip -9' -C target/aarch64-unknown-linux-musl/release dotslash
171171 - name : upload release
172172 env :
173173 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
@@ -191,7 +191,7 @@ jobs:
191191 - run : cargo test
192192 - run : cargo clippy
193193 - run : cargo build --release
194- - run : tar czvf dotslash-windows.tar.gz -C target/release dotslash.exe
194+ - run : tar czvf dotslash-windows.tar.gz --options gzip:compression-level=9 - C target/release dotslash.exe
195195 shell : cmd
196196 - name : upload release
197197 env :
0 commit comments