Skip to content

Commit 67314e3

Browse files
AlexMikhalevclaude
andauthored
fix(ci): use 7z instead of zip for Windows artifact packaging (#565)
The `zip` command is not available on GitHub Actions windows-latest runners. Replace with `7z a -tzip` which is pre-installed on all Windows runners and produces standard zip files. This fixes the "Prepare artifacts (Windows)" step failure in the v1.10.0 release workflow (exit code 127: zip command not found). Co-authored-by: Terraphim AI <noreply@anthropic.com>
1 parent 56b1371 commit 67314e3

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

.github/workflows/release-comprehensive.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -252,15 +252,15 @@ jobs:
252252
VERSION: ${{ needs.verify-versions.outputs.version }}
253253
run: |
254254
mkdir -p artifacts
255-
# Create zip archives with version in filename for auto-update compatibility
256-
if [ -f "target/${{ matrix.target }}/release/terraphim_server.exe" ]; then
257-
zip -j "artifacts/terraphim_server-${VERSION}-${{ matrix.target }}.zip" \
258-
"target/${{ matrix.target }}/release/terraphim_server.exe"
255+
# Create zip archives using 7z (pre-installed on windows-latest runners)
256+
# cd into release dir so zip contains only the exe filename (like zip -j)
257+
cd "target/${{ matrix.target }}/release"
258+
if [ -f "terraphim_server.exe" ]; then
259+
7z a -tzip "../../../artifacts/terraphim_server-${VERSION}-${{ matrix.target }}.zip" terraphim_server.exe
259260
fi
260-
zip -j "artifacts/terraphim-agent-${VERSION}-${{ matrix.target }}.zip" \
261-
"target/${{ matrix.target }}/release/terraphim-agent.exe"
262-
zip -j "artifacts/terraphim-cli-${VERSION}-${{ matrix.target }}.zip" \
263-
"target/${{ matrix.target }}/release/terraphim-cli.exe"
261+
7z a -tzip "../../../artifacts/terraphim-agent-${VERSION}-${{ matrix.target }}.zip" terraphim-agent.exe
262+
7z a -tzip "../../../artifacts/terraphim-cli-${VERSION}-${{ matrix.target }}.zip" terraphim-cli.exe
263+
cd -
264264
# Also copy raw binaries for backward compatibility
265265
cp target/${{ matrix.target }}/release/terraphim_server.exe artifacts/terraphim_server-${{ matrix.target }}.exe || true
266266
cp target/${{ matrix.target }}/release/terraphim-agent.exe artifacts/terraphim-agent-${{ matrix.target }}.exe || true

0 commit comments

Comments
 (0)