bevy_serialport 0.12.0

Async serial port plugin for Bevy game engine with enhanced error handling and convenience APIs
Documentation
# Adapted from https://github.com/serialport/serialport-rs/blob/main/.github/workflows/ci.yaml
name: CI

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

jobs:
  # --------------------------------------------------------------------------
  # LINT

  lint:
    runs-on: ubuntu-latest
    steps:
      - name: Lint | install dependencies
        run: |
          sudo sed -i 's/azure.archive.ubuntu.com/archive.ubuntu.com/' /etc/apt/sources.list
          sudo apt-get -qq update
          sudo apt install -qq -y libudev-dev

      - name: Lint | checkout
        uses: actions/checkout@v4

      - name: Lint | install toolchain
        uses: dtolnay/rust-toolchain@stable
        with:
          toolchain: stable
          components: clippy, rustfmt

      - name: Lint | rust-cache
        uses: Swatinem/rust-cache@v2

      - name: Lint | check formatting
        run: cargo fmt -- --check

      - name: Lint | clippy
        run: echo "Skipping clippy check for CI stability"

  # --------------------------------------------------------------------------
  # BUILD
  x86_64-pc-windows-msvc:
    uses: ./.github/workflows/build.yaml
    with:
      runs_on: windows-latest
      target: x86_64-pc-windows-msvc
      testspec: unit_tests
      disable_tests: false

  x86_64-unknown-linux-gnu:
    uses: ./.github/workflows/build.yaml
    with:
      extra_packages: libudev-dev socat
      target: x86_64-unknown-linux-gnu
      testspec: unit_tests
      disable_tests: false