feat: add README, AI skills, install script, CI + release workflows #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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" |