Skip to content

Commit 6e54bc2

Browse files
ci: use 7z when packing for Windows
1 parent 2093d90 commit 6e54bc2

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/rust.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,14 @@ jobs:
3434
- name: Pack
3535
shell: bash
3636
run: |
37-
if [ "$OS" = "Windows_NT" ]; then EXE="target/release/recast.exe"; else EXE="target/release/recast"; fi
3837
mkdir bin
39-
cp "$EXE" bin
40-
zip recast-${{ matrix.target }}.zip bin tools
38+
if [ "$OS" = "Windows_NT" ]; then
39+
cp target/release/recast.exe bin
40+
7z a recast-${{ matrix.target }}.zip bin tools
41+
else
42+
cp target/release/recast bin
43+
zip -r recast-${{ matrix.target }}.zip bin tools
44+
fi
4145
4246
- name: Release
4347
uses: softprops/action-gh-release@v1

0 commit comments

Comments
 (0)