Skip to content

Rust checks

Rust checks #44

Workflow file for this run

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