cargo-v5 0.12.1

Cargo tool for working with VEX V5 Rust projects
Documentation
name: Rust
run-name: Rust checks

on:
  push:
    branches:
      - '*'
  pull_request:
    branches: [ $default-branch ]
env:
  CARGO_TERM_COLOR: always

jobs:
  build:
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v4

      - name: Install Dependencies
        run: |
          sudo apt-get update
          sudo apt-get install -y libudev-dev libssl-dev

      - name: Cache
        uses: actions/cache@v4
        with:
          path: |
            ~/.cargo/bin/
            ~/.cargo/registry/index/
            ~/.cargo/registry/cache/
            ~/.cargo/git/db/
            target/
          key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}

      - name: Build
        run: cargo build --all-features
      - name: Run tests
        run: cargo test