gpui-liveplot 0.2.6

High-performance append-only plotting for GPUI applications.
Documentation
name: CI

on:
  push:
    branches:
      - main
      - master
  pull_request:
  workflow_dispatch:

jobs:
  rust:
    runs-on: ubuntu-latest

    steps:
      - name: Checkout
        uses: actions/checkout@v4

      - name: Install system dependencies
        run: |
          sudo apt-get update
          sudo apt-get install -y \
            pkg-config \
            libasound2-dev \
            libfontconfig1-dev \
            libfreetype6-dev \
            libssl-dev \
            libwayland-dev \
            libx11-dev \
            libx11-xcb-dev \
            libxcb1-dev \
            libxcb-render0-dev \
            libxcb-shape0-dev \
            libxcb-xfixes0-dev \
            libxkbcommon-dev \
            libxkbcommon-x11-dev

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

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

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

      - name: Check build
        run: RUSTC_WRAPPER= cargo check --all-targets

      - name: Run clippy
        run: RUSTC_WRAPPER= cargo clippy --all-targets -- -D warnings

      - name: Run tests
        run: RUSTC_WRAPPER= cargo test --all-targets

      - name: Check examples
        run: RUSTC_WRAPPER= cargo check --examples