Skip to content

fix: emit clean content_text, not raw streaming deltas with leaked to… #78

fix: emit clean content_text, not raw streaming deltas with leaked to…

fix: emit clean content_text, not raw streaming deltas with leaked to… #78

Workflow file for this run

name: Rust Backbone
on:
pull_request:
paths:
- "Cargo.toml"
- "Cargo.lock"
- "crates/**"
- ".github/workflows/rust-backbone.yml"
push:
branches:
- main
paths:
- "Cargo.toml"
- "Cargo.lock"
- "crates/**"
- ".github/workflows/rust-backbone.yml"
permissions:
contents: read
checks: write
concurrency:
group: rust-backbone-${{ github.ref }}
cancel-in-progress: true
jobs:
fmt:
name: Rust Format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- run: cargo fmt --all --check
lint-and-test:
name: Rust Lint And Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install system deps (rdkafka needs libcurl)
run: sudo apt-get update && sudo apt-get install -y cmake libcurl4-openssl-dev
- name: Create dashboard dist placeholder (rust-embed needs it)
run: mkdir -p dashboard/dist && echo '<html><body>placeholder</body></html>' > dashboard/dist/index.html
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- uses: Swatinem/rust-cache@v2
- run: cargo clippy --workspace --all-targets -- -D warnings
- run: cargo test --workspace
security-audit:
name: Security Audit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: rustsec/audit-check@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
build-matrix:
name: Rust Build (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
steps:
- uses: actions/checkout@v4
- name: Install system deps (Linux only — rdkafka needs libcurl)
if: runner.os == 'Linux'
run: sudo apt-get update && sudo apt-get install -y cmake libcurl4-openssl-dev
- name: Create dashboard dist placeholder (rust-embed needs it)
run: mkdir -p dashboard/dist && echo '<html><body>placeholder</body></html>' > dashboard/dist/index.html
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- run: cargo build --workspace --release