Add dre-usb-driver Created Modul for separate usb detection and validation without tokio TODO: rmodbus is working directly with frames, no higher level abstraction -> IDEA to write own abstraction to avoid tokio complexity and size Modbus communication established abstract begin Abstraction of serial device detection Extended the modbus for serialports demand added dre working dre detection with update control-core - serial registry update Working DRE test serial events add <Markdown> component add fullscreen button add <Markdown> component add fullscreen button 1 Add dre-usb-driver abstract begin s d solved some errors add <Markdown> component add fullscreen button add fullscreen button add <Markdown> component add fullscreen button 1 Add dre-usb-driver abstract begin Working DRE add <Markdown> component Add dre-usb-driver d solved some errors up c 123 Update rust.yml dre dev dre implemented
42 lines
987 B
YAML
42 lines
987 B
YAML
name: Rust
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- "**"
|
|
pull_request:
|
|
branches: "*"
|
|
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
RUST_VERSION: "1.86"
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Install libudev development package
|
|
run: sudo apt-get update && sudo apt-get install -y libudev-dev
|
|
- uses: actions/checkout@v4
|
|
- name: Set Rust version
|
|
run: rustup override set ${{ env.RUST_VERSION }}
|
|
- name: Cache Rust dependencies
|
|
uses: actions/cache@v3
|
|
with:
|
|
path: |
|
|
~/.cargo/bin/
|
|
~/.cargo/registry/index/
|
|
~/.cargo/registry/cache/
|
|
~/.cargo/git/db/
|
|
target/
|
|
key: ${{ runner.os }}-${{ env.RUST_VERSION }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-${{ env.RUST_VERSION }}-cargo-
|
|
|
|
- name: Build
|
|
run: cargo build --verbose
|
|
|
|
- name: Run tests
|
|
run: cargo test --verbose
|