wgc 1.0.2

An ergonomic Rust wrapper for Windows.Graphics.Capture API
Documentation
name: Rust (Windows)

permissions:
  contents: read

on:
  pull_request:
    branches: ["master"]

env:
  CARGO_TERM_COLOR: always

jobs:
  build:
    name: Build and Test
    runs-on: windows-latest

    steps:
      - uses: actions/checkout@v6

      - name: Install Rust toolchain
        uses: dtolnay/rust-toolchain@stable
        with:
          components: clippy, rustfmt

      - name: Rust Cache
        uses: Swatinem/rust-cache@v2

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

      - name: Clippy
        run: cargo clippy --no-default-features -- -D warnings

      - name: Clippy (all features)
        run: cargo clippy --all-features -- -D warnings

      - name: doc
        run: cargo doc --no-deps

      - name: Build
        run: cargo build --verbose

      - name: Run tests
        run: cargo test --verbose