steelbot/.github/workflows/steelbot-release.yml
caelum0x 4b2262e406 feat: Steelbot — autonomous AI agent with USDC wallet on Base
Synthesis Hackathon submission. Built on IronClaw fork.

26 tools: Locus payments (6), Uniswap DeFi (3), onchain reads (3),
security scanning (2), wallet analytics (3), OpenRouter LLM (2),
self-hosted scraping (3), portfolio (2), synthesis (2).

3 defense hooks: spending limits ($5/tx, $25/session), contract guard
(SCONE-bench vulnerability patterns), credential guard (blocks private
key/seed phrase leaks).

Payment system (Polar.sh), landing page, license key gating (Free/Pro/
Unlimited tiers), brand rename from IronClaw to Steelbot.

9,669 lines of code. 3,665 tests passing. Zero clippy warnings.
Real USDC transactions on Base chain.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-22 01:53:00 +03:00

139 lines
4.2 KiB
YAML

name: Steelbot Release
on:
push:
tags:
- "v*"
workflow_dispatch:
permissions:
contents: write
env:
CARGO_TERM_COLOR: always
jobs:
# ── Lint & Test gate ──────────────────────────────────────────
quality:
name: Quality Gate
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
targets: wasm32-wasip2
- uses: Swatinem/rust-cache@v2
- name: Check formatting
run: cargo fmt --all -- --check
- name: Clippy
run: cargo clippy --all --all-features -- -D warnings
- name: Unit tests
run: cargo test --lib
# ── Cross-platform binary builds ────────────────────────────
build:
name: Build (${{ matrix.target }})
needs: quality
runs-on: ${{ matrix.runner }}
strategy:
fail-fast: false
matrix:
include:
- target: aarch64-apple-darwin
runner: macos-14
strip: strip
- target: x86_64-apple-darwin
runner: macos-13
strip: strip
- target: x86_64-unknown-linux-musl
runner: ubuntu-latest
strip: strip
- target: aarch64-unknown-linux-musl
runner: ubuntu-latest
strip: aarch64-linux-gnu-strip
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.target }}
- uses: Swatinem/rust-cache@v2
with:
key: release-${{ matrix.target }}
- name: Install cross-compilation dependencies (Linux musl)
if: contains(matrix.target, 'linux-musl')
run: |
sudo apt-get update
sudo apt-get install -y musl-tools
if [[ "${{ matrix.target }}" == "aarch64-unknown-linux-musl" ]]; then
sudo apt-get install -y gcc-aarch64-linux-gnu
echo "CARGO_TARGET_AARCH64_UNKNOWN_LINUX_MUSL_LINKER=aarch64-linux-gnu-gcc" >> "$GITHUB_ENV"
fi
- name: Build release binary
run: cargo build --release --target ${{ matrix.target }}
- name: Strip binary
run: ${{ matrix.strip }} target/${{ matrix.target }}/release/ironclaw || true
- name: Determine version
id: version
run: |
if [[ "$GITHUB_REF" == refs/tags/v* ]]; then
echo "version=${GITHUB_REF#refs/tags/}" >> "$GITHUB_OUTPUT"
else
echo "version=dev-$(git rev-parse --short HEAD)" >> "$GITHUB_OUTPUT"
fi
- name: Package tarball
run: |
STAGING_DIR="steelbot-${{ steps.version.outputs.version }}-${{ matrix.target }}"
mkdir -p "$STAGING_DIR"
cp target/${{ matrix.target }}/release/ironclaw "$STAGING_DIR/steelbot"
tar czf "steelbot-${{ steps.version.outputs.version }}-${{ matrix.target }}.tar.gz" "$STAGING_DIR"
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: steelbot-${{ matrix.target }}
path: steelbot-*.tar.gz
# ── Create GitHub Release with all tarballs ─────────────────
release:
name: Create Release
needs: build
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Download all artifacts
uses: actions/download-artifact@v4
with:
pattern: steelbot-*
path: release-artifacts/
merge-multiple: true
- name: Generate checksums
run: |
cd release-artifacts
sha256sum *.tar.gz > SHA256SUMS.txt
- name: Create GitHub Release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
TAG="${GITHUB_REF#refs/tags/}"
gh release create "$TAG" \
--title "Steelbot $TAG" \
--generate-notes \
release-artifacts/*.tar.gz \
release-artifacts/SHA256SUMS.txt