fpvsetup 0.1.0

Library and GUI tool for calculating optimal first-person 3D view parameters from monitor size and distance
Documentation
name: Checks and tests

on: [push, pull_request]

jobs:
  check_and_test:
    strategy:
      matrix:
        toolchain: ["1.46.0", nightly]
        os: [windows-latest, macos-latest]
        install_deps: [""]
        include:
          - os: ubuntu-latest
            toolchain: "1.46.0"
            install_deps: sudo apt install libx11-dev libpango1.0-dev
          - os: ubuntu-latest
            toolchain: nightly
            install-deps: sudo apt install libx11-dev libpango1.0-dev

    name: On ${{ matrix.toolchain }}, ${{ matrix.os }}
    runs-on: ${{ matrix.os }}
    steps:
      - name: Checkout the repository
        uses: actions/checkout@v2

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

      - name: Install C/C++ dependencies
        run: ${{ matrix.install_deps }}

      - name: Run Clippy
        uses: actions-rs/cargo@v1
        with:
          command: clippy
          # Clippy on 1.46 doesn't have some lints from the latest nightly that we use, so we
          # disable warning about that altogether.
          args: "-- -A clippy::unknown_clippy_lints"
        env:
          RUSTFLAGS: -D warnings
      #- name: Run tests
      #  uses: actions-rs/cargo@v1
      #  with:
      #    command: test
      #  env:
      #    RUSTFLAGS: -D warnings