Skip to content

Commit d6e678c

Browse files
committed
✨ (build.yml): update GitHub Actions workflow to use 7zip for Windows artifact compression, enhancing compatibility and streamlining the release process.
1 parent ab0a849 commit d6e678c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ jobs:
8181
run: |
8282
cd release-artifact
8383
if [ "${{ matrix.os }}" = "windows-latest" ]; then
84-
# Windows: use PowerShell Compress-Archive
85-
Compress-Archive -Path release-artifact\* -DestinationPath ${{ matrix.asset_name }}${{ matrix.archive_ext }} -Force
84+
# Windows: use 7zip
85+
7z a ../${{ matrix.asset_name }}${{ matrix.archive_ext }} *
8686
else
8787
# Linux/macOS: use tar
8888
tar -czf ../${{ matrix.asset_name }}${{ matrix.archive_ext }} *

0 commit comments

Comments
 (0)