windbgr-mcp 0.1.1

MCP server for Windows debugging
Documentation
name: CI

on:
  push:
    branches: [master]
  pull_request:
    branches: [master]

concurrency:
  group: ci-${{ github.workflow }}-${{ github.ref }}
  cancel-in-progress: true

env:
  CARGO_TERM_COLOR: always
  RUSTFLAGS: -D warnings
  TARGET: x86_64-pc-windows-msvc

jobs:
  check:
    name: Format and lint
    runs-on: windows-latest
    steps:
      - name: Checkout repository
        uses: actions/checkout@v4
        with:
          persist-credentials: false

      - name: Install Rust toolchain
        uses: dtolnay/rust-toolchain@stable
        with:
          components: rustfmt, clippy
          targets: ${{ env.TARGET }}

      - name: Cache cargo registry and target
        uses: Swatinem/rust-cache@v2

      - name: cargo fmt --check
        run: cargo fmt --all -- --check

      - name: cargo clippy
        run: cargo clippy --all-targets --target $env:TARGET -- -D warnings

  prepublish:
    name: Test and package (Windows x86_64)
    runs-on: windows-latest
    needs: check
    steps:
      - name: Checkout repository
        uses: actions/checkout@v4
        with:
          persist-credentials: false

      - name: Install Rust toolchain
        uses: dtolnay/rust-toolchain@stable
        with:
          targets: ${{ env.TARGET }}

      - name: Cache cargo registry and target
        uses: Swatinem/rust-cache@v2

      - name: cargo test
        run: cargo test --all-targets --locked --target $env:TARGET

      - name: cargo build --release
        run: cargo build --release --locked --target $env:TARGET

      - name: cargo publish --dry-run
        # Confirms the manifest is publish-ready (metadata, files, license)
        # and verifies the package for the Windows amd64 release target.
        run: cargo publish --dry-run --locked --target $env:TARGET