diff --git a/.github/bors.toml b/.github/bors.toml index 20c21ea828..078b78bd2c 100644 --- a/.github/bors.toml +++ b/.github/bors.toml @@ -11,6 +11,7 @@ status = [ "run-examples", "check-doc", "check-missing-examples-in-docs", + "check-unused-dependencies", ] use_squash_merge = true diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4fe6ee5d01..af23b4c778 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -168,3 +168,22 @@ jobs: file-types: '[".rs"]' exclude-folders: '["./examples/ios"]' exclude-files: '[]' + + check-unused-dependencies: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - uses: actions-rs/toolchain@v1 + with: + toolchain: nightly + override: true + + - name: Installs cargo-udeps + run: cargo install cargo-udeps + + - name: Install alsa and udev + run: sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev + + - name: Run cargo udeps + run: cargo udeps