Skip to content

feat(brain): add memory, hooks, maxTurns; deprecate --initial-prompt #922

feat(brain): add memory, hooks, maxTurns; deprecate --initial-prompt

feat(brain): add memory, hooks, maxTurns; deprecate --initial-prompt #922

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
CARGO_TERM_COLOR: always
jobs:
# Fast formatting check — no build required
fmt:
name: Format
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- name: Check formatting
run: cargo fmt --all --check
# Cross-platform crates on Linux (kild-core + kild CLI)
linux:
name: Linux (kild-core, kild)
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y cmake libssl-dev pkg-config
- name: Cache cargo
uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: linux-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: linux-cargo-
- name: Clippy
run: cargo clippy -p kild-core -p kild -- -D warnings
- name: Build
run: cargo build -p kild-core -p kild
- name: Test
run: cargo test -p kild-core -p kild
# macOS core + CLI
macos-core:
name: macOS (kild-core, kild)
runs-on: macos-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- name: Cache cargo
uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: macos-core-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: macos-core-cargo-
- name: Clippy
run: cargo clippy -p kild-core -p kild -- -D warnings
- name: Build
run: cargo build -p kild-core -p kild
- name: Test
run: cargo test -p kild-core -p kild
# macOS GUI (heavy gpui dependency)
macos-ui:
name: macOS (kild-ui)
runs-on: macos-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- name: Cache cargo
uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: macos-ui-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: macos-ui-cargo-
- name: Clippy
run: cargo clippy -p kild-ui -- -D warnings
- name: Build
run: cargo build -p kild-ui
- name: Test
run: cargo test -p kild-ui
# macOS peek (heavy native framework dependencies)
macos-peek:
name: macOS (kild-peek)
runs-on: macos-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- name: Cache cargo
uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: macos-peek-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: macos-peek-cargo-
- name: Clippy
run: cargo clippy -p kild-peek-core -p kild-peek -- -D warnings
- name: Build
run: cargo build -p kild-peek-core -p kild-peek
- name: Test
run: cargo test -p kild-peek-core -p kild-peek