build(cli): shrink publish artifact to unblock build-vscode download

The kilo-cli artifact ballooned from ~1 GB to 1.83 GB after the codebase
indexing PR started emitting external sourcemaps and copying tree-sitter
wasms per target. The resulting 1.83 GB artifact triggered a silent
partial-extract in actions/download-artifact@v4 during build-vscode,
causing the 2026-04-29 publish run to fail with 'CLI binary not found'.

- Skip external sourcemaps in release builds (~620 MB saved across
  12 targets); dev builds still emit maps for local debugging.
- Exclude any stray .map files from the CI artifact and skip zstd
  compression on binaries (saves ~60 s on upload and reduces the
  chance of partial-extract bugs on the download side).

Refs: PR #6966 (commit f74d54c4), run 25096325401
This commit is contained in:
kiloconnect[bot]
2026-04-29 09:06:16 +00:00
parent 34787b4848
commit 6458b593c0
2 changed files with 9 additions and 2 deletions
+6 -1
View File
@@ -96,7 +96,12 @@ jobs:
- uses: actions/upload-artifact@v4
with:
name: kilo-cli
path: packages/opencode/dist
path: |
packages/opencode/dist
!packages/opencode/dist/**/*.map
# Binaries don't compress meaningfully; skip the ~60s zstd pass and
# reduce the chance of partial-extract bugs on the download side.
compression-level: 0
outputs:
version: ${{ needs.version.outputs.version }}