i-self 0.4.3

Personal developer-companion CLI: scans your repos, indexes code semantically, watches your activity, and moves AI-agent sessions between tools (Claude Code, Aider, Goose, OpenAI Codex CLI, Continue.dev, OpenCode).
name: CI

on:
  push:
    branches: [main, develop]
  pull_request:
    branches: [main]

env:
  CARGO_TERM_COLOR: always
  # The aws-sdk-* deps are pinned to versions whose MSRV is 1.88. Keep CI
  # locked to a known-good toolchain so a transitive dep bump doesn't break us.
  RUST_TOOLCHAIN: "1.88.0"

jobs:
  test:
    name: Test (${{ matrix.os }})
    runs-on: ${{ matrix.os }}
    strategy:
      fail-fast: false
      matrix:
        os: [ubuntu-latest, macos-latest]
    steps:
      - uses: actions/checkout@v4

      - name: Install Rust
        # Note: previous workflow used `dtolnay/rust-action` which doesn't exist;
        # the correct action is `rust-toolchain`. Pinning to v1 for stability.
        uses: dtolnay/rust-toolchain@v1
        with:
          toolchain: ${{ env.RUST_TOOLCHAIN }}
          components: clippy

      - name: Cache cargo
        uses: Swatinem/rust-cache@v2
        with:
          shared-key: "i-self-${{ matrix.os }}"

      # Linux needs X11/XCB headers for device_query (input polling).
      - name: Install Linux input-polling deps
        if: runner.os == 'Linux'
        run: sudo apt-get update && sudo apt-get install -y libxcb1-dev libxcb-randr0-dev libxcb-shape0-dev

      - name: Build
        run: cargo build --verbose

      - name: Run tests
        run: cargo test --verbose

      # Clippy runs as a soft warning gate — pre-existing modules have lots of
      # `#[allow(dead_code)]` scaffolding that would block hard `-D warnings`.
      - name: Clippy (informational)
        run: cargo clippy --all-targets || true