From 8295ab30962ac6d8414c4fd0b767a2491d3f97cb Mon Sep 17 00:00:00 2001 From: Josh Lambert Date: Thu, 4 Jun 2026 22:52:27 -0400 Subject: [PATCH] ci: validate Linux CLI release artifacts --- .github/workflows/publish.yml | 37 +++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 7a882f7433..223f0f6bb9 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -185,6 +185,42 @@ jobs: ./dist/@kilocode/cli-darwin-arm64/bin/kilo --version ./dist/@kilocode/cli-darwin-arm64/bin/kilo --help >/dev/null # kilocode_change end + + # kilocode_change start - execute native Linux x64 and arm64 binaries before publishing them + validate-linux: + name: Validate CLI (linux-${{ matrix.arch }}) + needs: build-cli + strategy: + fail-fast: false + matrix: + include: + - arch: x64 + runner: ubuntu-24.04 + uname: x86_64 + - arch: arm64 + runner: ubuntu-24.04-arm + uname: aarch64 + runs-on: ${{ matrix.runner }} + timeout-minutes: 15 + steps: + - uses: actions/download-artifact@v8 + with: + name: kilo-cli.tar.zst + path: /tmp + skip-decompress: true + + - name: Unpack CLI dist + run: | + mkdir -p dist + tar --zstd -xf /tmp/kilo-cli.tar.zst -C dist + + - name: Run CLI smoke test + run: | + test "$(uname -m)" = "${{ matrix.uname }}" + ./dist/@kilocode/cli-linux-${{ matrix.arch }}/bin/kilo --version + ./dist/@kilocode/cli-linux-${{ matrix.arch }}/bin/kilo --help >/dev/null + # kilocode_change end + # kilocode_change start # Run smoke tests against CLI assets uploaded to the draft GitHub release # before publishing the release and package artifacts. @@ -206,6 +242,7 @@ jobs: - build-cli - build-vscode - validate-darwin-arm64 # kilocode_change + - validate-linux # kilocode_change - smoke-test runs-on: ubuntu-24.04 steps: