Skip to content

ci: retry dropped release asset downloads #2916

ci: retry dropped release asset downloads

ci: retry dropped release asset downloads #2916

name: Crabbox Release Check
on:
pull_request:
permissions:
contents: read
jobs:
release-check:
name: Release Check
if: github.repository == 'openclaw/crabbox'
runs-on: macos-15
timeout-minutes: 45
steps:
- name: Check out target merge commit
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
persist-credentials: false
- name: Verify target identity
shell: bash
run: |
set -euo pipefail
test "$GITHUB_REPOSITORY" = openclaw/crabbox
test "$GITHUB_BASE_REF" = main
test "$(git rev-parse HEAD)" = "$GITHUB_SHA"
- name: Verify Apple Silicon runner
run: test "$(uname -m)" = arm64
- name: Set up Go
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
with:
go-version-file: go.mod
cache: false
- name: Snapshot release build
uses: goreleaser/goreleaser-action@f06c13b6b1a9625abc9e6e439d9c05a8f2190e94 # v7.2.3
with:
distribution: goreleaser
version: "~> v2"
args: release --snapshot --clean --skip=publish --parallelism 1
- name: Verify snapshot helper embeds VM daemon
shell: bash
run: |
set -euo pipefail
helper="$(find dist -type f -name crabbox-apple-vm-helper -print -quit)"
if [ -z "$helper" ] || [ ! -x "$helper" ]; then
echo "::error::snapshot Apple VM helper not found"
exit 1
fi
if ! "$helper" vmd-info | grep -q '"embedded":true'; then
echo "::error::snapshot Apple VM helper is missing the embedded VM daemon"
exit 1
fi