espup 0.3.0

Tool for installing and maintaining ESP Rust environment.
Documentation
---
name: Continuous Integration

on:
  push:
    branches:
      - main
    paths-ignore:
      - "**/README.md"
      - "**/audit.yaml"
      - "**/cd.yaml"
  pull_request:
    paths-ignore:
      - "**/README.md"
      - "**/audit.yaml"
      - "**/cd.yaml"

env:
  CARGO_TERM_COLOR: always
  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

jobs:
  cargo-checks:
    name: cargo ${{ matrix.action.command }} - ${{ matrix.job.os }}
    runs-on: ${{ matrix.job.os }}
    strategy:
      fail-fast: false
      matrix:
        job:
          - os: macos-latest
            os-name: macos
          - os: ubuntu-20.04
            os-name: linux
          - os: windows-latest
            os-name: windows
            binary-postfix: ".exe"
        action:
          - command: build
            args: --release
          - command: test
            args: --all-features --workspace
          - command: fmt
            args: --all -- --check
          - command: clippy
            args: --all-targets --all-features --workspace -- -D warnings
          - command: doc
            args: --no-deps --document-private-items --all-features --workspace --examples
          - command: publish
            args: --dry-run
    steps:
      - name: Install dependencies
        if: ${{ matrix.job.os == 'ubuntu-20.04' }}
        run: |
          sudo sed -i 's/azure.archive.ubuntu.com/archive.ubuntu.com/' /etc/apt/sources.list
          sudo apt-get update
          sudo apt-get install libudev-dev
      - name: Checkout repository
        uses: actions/checkout@v3
      - name: Setup Rust toolchain
        uses: dtolnay/rust-toolchain@stable
      - name: Enable caching
        uses: Swatinem/rust-cache@v2
      - name: Cargo command
        run: cargo ${{ matrix.action.command }} ${{ matrix.action.args }}
      - name: Archive artifact
        if: ${{ matrix.action.command == 'build' }}
        uses: actions/upload-artifact@v3
        with:
          name: espup-${{ matrix.job.os-name }}${{ matrix.job.binary-postfix }}
          path: target/release/espup${{ matrix.job.binary-postfix }}
  msrv:
    name: MSRV check
    runs-on: ubuntu-20.04
    steps:
      - name: Install dependencies
        run: |
          sudo sed -i 's/azure.archive.ubuntu.com/archive.ubuntu.com/' /etc/apt/sources.list
          sudo apt-get update
          sudo apt-get install musl-tools libudev-dev
      - name: Checkout repository
        uses: actions/checkout@v3
      - name: Setup Rust toolchain
        uses: dtolnay/rust-toolchain@stable
        with:
          toolchain: 1.64.0
      - name: Enable caching
        uses: Swatinem/rust-cache@v2
      - name: Cargo check
        run: cargo check