ci(qa): build Crabbox CLI for Mantis desktop runs · openclaw/openclaw@a04d906
steipete
·
2026-05-04
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -255,23 +255,23 @@ jobs:
|
255 | 255 | - name: Build Mantis harness |
256 | 256 | run: pnpm build |
257 | 257 | |
| 258 | + - name: Setup Go for Crabbox CLI |
| 259 | +uses: actions/setup-go@v6 |
| 260 | +with: |
| 261 | +go-version: "1.26.x" |
| 262 | +cache: false |
| 263 | + |
258 | 264 | - name: Install Crabbox CLI |
259 | | -env: |
260 | | -GH_TOKEN: ${{ github.token }} |
261 | 265 | shell: bash |
262 | 266 | run: | |
263 | 267 | set -euo pipefail |
264 | 268 | install_dir="${RUNNER_TEMP}/crabbox" |
265 | 269 | mkdir -p "$install_dir" "$HOME/.local/bin" |
266 | | - gh release download \ |
267 | | - --repo openclaw/crabbox \ |
268 | | - --pattern 'crabbox_*_linux_amd64.tar.gz' \ |
269 | | - --dir "$install_dir" \ |
270 | | - --clobber |
271 | | - tar -xzf "$install_dir"/crabbox_*_linux_amd64.tar.gz -C "$install_dir" |
272 | | - install -m 0755 "$install_dir/crabbox" "$HOME/.local/bin/crabbox" |
| 270 | + git clone --depth 1 https://github.com/openclaw/crabbox.git "$install_dir/src" |
| 271 | + go build -C "$install_dir/src" -o "$HOME/.local/bin/crabbox" ./cmd/crabbox |
273 | 272 | echo "$HOME/.local/bin" >> "$GITHUB_PATH" |
274 | 273 | "$HOME/.local/bin/crabbox" --version |
| 274 | + "$HOME/.local/bin/crabbox" warmup --help 2>&1 | grep -q -- "--desktop" |
275 | 275 | |
276 | 276 | - name: Prepare baseline and candidate worktrees |
277 | 277 | shell: bash |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -123,7 +123,9 @@ worktrees, runs `discord-status-reactions-tool-only` against each worktree, and
|
123 | 123 | uploads `baseline/`, `candidate/`, `comparison.json`, and `mantis-report.md` as |
124 | 124 | Actions artifacts. It also renders each lane's timeline HTML in a Crabbox |
125 | 125 | desktop browser and publishes those VNC screenshots beside the deterministic |
126 | | -timeline PNGs in the PR comment. |
| 126 | +timeline PNGs in the PR comment. The workflow builds the Crabbox CLI from |
| 127 | +`openclaw/crabbox` main so it can use the current desktop/browser lease flags |
| 128 | +before the next Crabbox binary release is cut. |
127 | 129 | |
128 | 130 | You can also trigger the status-reactions run directly from a PR comment: |
129 | 131 | |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。