docs: plain-English 'what it does' intro + protect-mcp relationship #6
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: | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| test: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macos-latest] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: clippy, rustfmt | |
| - uses: Swatinem/rust-cache@v2 | |
| - run: cargo fmt --all --check | |
| # v0.1-alpha: default features only. The `linux-sandbox` feature is | |
| # opt-in while the Landlock/seccomp backend is stabilized with | |
| # design partners (tracked in issue #1). | |
| - run: cargo clippy --workspace --all-targets | |
| - run: cargo test --workspace | |
| - name: End-to-end smoke (Linux) | |
| if: matrix.os == 'ubuntu-latest' | |
| run: | | |
| cargo build -p sb-cli | |
| rm -rf /tmp/sb-smoke && mkdir /tmp/sb-smoke | |
| ./target/debug/sb exec \ | |
| --policy examples/basic/policy.cedar \ | |
| --receipts /tmp/sb-smoke \ | |
| --allow-unsandboxed \ | |
| -- /bin/echo "hello from CI" | |
| ./target/debug/sb verify /tmp/sb-smoke | |
| release: | |
| if: startsWith(github.ref, 'refs/tags/v') | |
| needs: test | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| include: | |
| - os: ubuntu-latest | |
| target: x86_64-unknown-linux-gnu | |
| artifact: sb-x86_64-linux | |
| - os: macos-latest | |
| target: x86_64-apple-darwin | |
| artifact: sb-x86_64-macos | |
| - os: macos-latest | |
| target: aarch64-apple-darwin | |
| artifact: sb-aarch64-macos | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| targets: ${{ matrix.target }} | |
| - run: cargo build --release --target ${{ matrix.target }} -p sb-cli | |
| - name: Upload release binary | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: ${{ matrix.artifact }} | |
| path: target/${{ matrix.target }}/release/sb |