Skip to content

Commit

Permalink
fix(linux): add libudev
Browse files Browse the repository at this point in the history
  • Loading branch information
andelf committed Nov 5, 2023
1 parent 643a057 commit 96e22ef
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,12 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: Install libudev for Linux
if: runner.os == 'Linux'
run: sudo apt-get install libudev-dev
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
- name: Run help
run: cargo run -- --help
3 changes: 3 additions & 0 deletions .github/workflows/nightly-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ jobs:
toolchain: nightly
components: rustfmt, clippy
override: true
- name: Install libudev for Linux (optional)
if: matrix.os == 'Linux'
run: sudo apt-get install libudev-dev
- name: Build
run: cargo build --release
- name: Run help
Expand Down
21 changes: 21 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ object = { version = "0.32", default-features = false, features = [
"std",
] }
indicatif = "0.17.7"
serialport = { version = "4.2.2", default-features = false}
serialport = "4.2.2"

0 comments on commit 96e22ef

Please sign in to comment.