Skip to content

update checkout action to v3 #857

update checkout action to v3

update checkout action to v3 #857

Workflow file for this run

name: rust
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
RUST_BACKTRACE: 1
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
components: rustfmt, clippy
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y libudev-dev
- name: Build
run: cargo build
- name: Test
run: cargo test -- --nocapture
- name: Build (all features)
run: cargo build --all-features
- name: Test (all features)
run: cargo test --all-features -- --nocapture
- name: Coding style
run: cargo fmt --all -- --check