This repository was archived by the owner on Apr 11, 2026. It is now read-only.
feat(install): auto-provision flowctl binary on SessionStart #40
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: Rust CI | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - "flowctl/**" | |
| - ".github/workflows/ci.yml" | |
| pull_request: | |
| paths: | |
| - "flowctl/**" | |
| - ".github/workflows/ci.yml" | |
| env: | |
| CARGO_TERM_COLOR: always | |
| defaults: | |
| run: | |
| working-directory: flowctl | |
| jobs: | |
| check: | |
| name: Check / Test / Lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Rust toolchain | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: clippy, rustfmt | |
| - name: Cache cargo registry & build | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.cargo/registry | |
| ~/.cargo/git | |
| flowctl/target | |
| key: ${{ runner.os }}-cargo-${{ hashFiles('flowctl/Cargo.lock') }} | |
| restore-keys: ${{ runner.os }}-cargo- | |
| - name: cargo fmt --check | |
| run: cargo fmt --all -- --check | |
| - name: cargo clippy | |
| run: cargo clippy --all-targets -- -D warnings | |
| - name: cargo build | |
| run: cargo build --all-targets | |
| - name: cargo test | |
| run: cargo test --all-targets |