gdbstub 0.7.10

An implementation of the GDB Remote Serial Protocol in Rust
Documentation
on: [push, pull_request]

name: ci

jobs:
  test:
    name: clippy + tests + docs
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: actions-rs/toolchain@v1
        with:
          profile: minimal
          toolchain: stable
          override: true

      - name: cargo clippy
        uses: actions-rs/cargo@v1
        with:
          command: clippy
          args: --workspace --tests --examples --features=std -- -D warnings

      # don't forget the no_std example!
      - name: cargo clippy (example_no_std)
        uses: actions-rs/cargo@v1
        with:
          command: clippy
          args: --manifest-path example_no_std/Cargo.toml

      - name: cargo test
        uses: actions-rs/cargo@v1
        with:
          command: test
          args: --workspace --features=std

      - name: no panics in example_no_std
        run: ./example_no_std/dump_asm.sh
        shell: bash

      - name: cargo doc
        run: cargo doc --workspace --features=std
        env:
          RUSTDOCFLAGS: "-Dwarnings"

  rustfmt:
    name: rustfmt (nightly)
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: actions-rs/toolchain@v1
        with:
          profile: minimal
          toolchain: nightly
          override: true
          components: rustfmt
      - name: cargo +nightly fmt
        uses: actions-rs/cargo@v1
        with:
          command: fmt
          args: --all -- --check
      # don't forget the no_std example!
      - name: cargo +nightly fmt (example_no_std)
        uses: actions-rs/cargo@v1
        with:
          command: fmt
          args: --manifest-path example_no_std/Cargo.toml