epee-encoding 0.5.0

Epee binary format library.
Documentation
name: CI

on:
  push:
    branches: [ main ]
  pull_request:
    branches: [ main ]

env:
  CARGO_TERM_COLOR: always

jobs:

  static_analysis:
    name: Static Analysis
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3

      - name: Install Rust Stable
        uses: actions-rs/toolchain@v1
        with:
          toolchain: stable
          components: rustfmt, clippy

      - name: Run format
        uses: actions-rs/cargo@v1
        with:
          command: fmt
          args: -- --check

      - name: Run clippy
        uses: actions-rs/cargo@v1
        with:
          command: clippy
          args: --workspace --all-targets --all-features -- -D warnings

  build:
    name: Build
    strategy:
      matrix:
        rust: [
          1.60.0,
          stable,
          nightly
        ]
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3

      - name: Install Rust ${{ matrix.rust }}
        uses: actions-rs/toolchain@v1.0.7
        with:
          toolchain: ${{ matrix.rust }}
          override: true
          profile: minimal

      - uses: Swatinem/rust-cache@v2.5.1

      - name: Build (default)
        uses: actions-rs/cargo@v1
        with:
          command: build
          args: --verbose

      - name: Build (no-std)
        uses: actions-rs/cargo@v1
        with:
          command: build
          args: --verbose --no-default-features

  test:
    name: Test
    strategy:
      matrix:
        rust: [
          stable,
          nightly
        ]
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3

      - name: Install Rust ${{ matrix.rust }}
        uses: actions-rs/toolchain@v1.0.7
        with:
          toolchain: ${{ matrix.rust }}
          override: true
          profile: minimal

      - uses: Swatinem/rust-cache@v2.5.1

      - name: Run tests (std)
        uses: actions-rs/cargo@v1
        with:
          command: test
          args: --verbose --all-features

      - name: Run tests (no-std)
        uses: actions-rs/cargo@v1
        with:
          command: test
          args: --verbose --features=derive