Skip to content

rm structured output from unified MCP #295

rm structured output from unified MCP

rm structured output from unified MCP #295

Workflow file for this run

name: CI
on:
push:
branches: [main]
paths:
- "Cargo.toml"
- "crates/**"
- ".github/workflows/ci.yaml"
pull_request:
paths:
- "Cargo.toml"
- "crates/**"
- ".github/workflows/ci.yaml"
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
CARGO_TERM_COLOR: always
CARGO_INCREMENTAL: 0
jobs:
fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- name: Check formatting
run: cargo fmt --all --check
# clippy:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - uses: dtolnay/rust-toolchain@stable
# with:
# components: clippy
# - uses: Swatinem/rust-cache@v2
# with:
# # Include V8 in the cache key since it's large and platform-specific
# shared-key: "v8-build"
# # Build first to ensure V8 is properly downloaded and cached
# - name: Build project
# run: cargo build --workspace --all-targets --locked
# env:
# # Ensure V8 downloads are retried on failure
# V8_FROM_SOURCE: 0
# RUSTY_V8_MIRROR: https://github.com/denoland/rusty_v8/releases/download
# - name: Run clippy
# run: cargo clippy --workspace --all-targets --all-features --locked -- -D warnings
test:
strategy:
matrix:
os: [ubuntu-latest]
# TODO macos-latest windows-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
# Install build essentials BEFORE freeing disk space to avoid removal
- name: Install build dependencies (Ubuntu)
if: matrix.os == 'ubuntu-latest'
run: sudo apt-get update && sudo apt-get install -y build-essential
# Free up disk space on Ubuntu runners
- name: Free Disk Space (Ubuntu)
if: matrix.os == 'ubuntu-latest'
uses: jlumbroso/free-disk-space@main
with:
tool-cache: false
android: true
dotnet: true
haskell: true
large-packages: false
docker-images: true
swap-storage: true
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
# Clean up old cache entries to save space
cache-on-failure: false
# Install build dependencies for libsqlite3-sys bindgen
- name: Install build dependencies (Linux)
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install -y libclang-dev libc6-dev
# - name: Set Windows build jobs
# if: matrix.os == 'windows-latest'
# run: echo "CARGO_BUILD_JOBS=1" >> $GITHUB_ENV
# shell: bash
# - name: Run tests (Windows)
# if: matrix.os == 'windows-latest'
# run: cargo test --workspace --locked -- --test-threads=1
- name: Run tests (Unix)
# if: matrix.os != 'windows-latest'
run: cargo test --workspace --locked