Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

Commit

Permalink
chore: installing libudev
Browse files Browse the repository at this point in the history
  • Loading branch information
akorchyn committed Sep 9, 2024
1 parent 0158410 commit a681d02
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ jobs:

steps:
- uses: actions/checkout@v4
- name: Install libudev (Linux only)
if: runner.os == 'Linux'
run: sudo apt-get -y install libudev-dev libsystemd-dev
- name: Run clippy
run: cargo clippy --all-targets -- -D clippy::all -D clippy::nursery

Expand All @@ -28,14 +31,14 @@ jobs:
- name: Run cargo fmt
run: cargo fmt --check

# there're sometimes warnings, which signal, that the generated doc
# won't look as expected, when rendered, and sometimes errors, which will prevent doc from being
# generated at release time altogether.
cargo-doc:
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v4
- name: Install libudev (Linux only)
if: runner.os == 'Linux'
run: sudo apt-get -y install libudev-dev libsystemd-dev
- name: run cargo doc
run: RUSTDOCFLAGS="-D warnings" cargo doc

Expand All @@ -56,6 +59,9 @@ jobs:
toolchain: ${{ matrix.toolchain }}
default: true
- uses: Swatinem/rust-cache@v1
- name: Install libudev (Linux only)
if: runner.os == 'Linux'
run: sudo apt-get -y install libudev-dev libsystemd-dev
- name: Check with stable features
run: cargo check --verbose
- name: Run tests with unstable features
Expand Down

0 comments on commit a681d02

Please sign in to comment.