Skip to content

Added device specific attach/detach callbacks for the devices. #97

Added device specific attach/detach callbacks for the devices.

Added device specific attach/detach callbacks for the devices. #97

Workflow file for this run

name: Rust
on:
push:
branches: [ "master", "develop" ]
pull_request:
branches: [ "master", "develop" ]
env:
CARGO_TERM_COLOR: always
jobs:
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
components: rustfmt
- run: cargo fmt --check --all
build:
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- stable
- 1.73.0
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
override: true
- name: Install phidget22
run: |
sudo -s eval 'curl -fsSL https://www.phidgets.com/downloads/setup_linux | bash -'
sudo apt-get install -y libphidget22 libphidget22-dev
- run: rustc --version
- name: Build check
run: cargo check --verbose
- name: Run tests
run: cargo test --verbose
clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: 1.73.0
override: true
components: clippy
- run: cargo clippy -- -D warnings