Skip to content

feat: add README, AI skills, install script, CI + release workflows #1

feat: add README, AI skills, install script, CI + release workflows

feat: add README, AI skills, install script, CI + release workflows #1

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: dtolnay/rust-toolchain@stable
- run: cargo test
- run: cargo clippy -- -D warnings
format:
name: Format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- run: cargo fmt --all -- --check
size:
name: Binary size
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: dtolnay/rust-toolchain@stable
- run: cargo build --release
- name: Check binary size < 1MB
run: |
SIZE=$(stat -f%z target/release/patrol 2>/dev/null || stat -c%s target/release/patrol)
echo "Binary size: $SIZE bytes ($(( SIZE / 1024 )) KB)"
if [ "$SIZE" -gt 1048576 ]; then
echo "ERROR: Binary exceeds 1MB limit!"
exit 1
fi
echo "OK: Under 1MB limit"