fix api breakage (#186) #553
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: | |
- main | |
paths: | |
- "**.rs" | |
- Cargo.toml | |
- Cargo.lock | |
- .github/workflows/cargo-clippy.yml | |
- "rust-toolchain.toml" | |
- "openapi/*.json" | |
pull_request: | |
paths: | |
- "**.rs" | |
- Cargo.toml | |
- Cargo.lock | |
- .github/workflows/cargo-clippy.yml | |
- "rust-toolchain.toml" | |
- "openapi/*.json" | |
name: cargo clippy | |
jobs: | |
cargoclippy: | |
name: cargo clippy | |
runs-on: ubuntu-latest | |
env: | |
# This envvar is here to prevent `ring` from failing due to a | |
# glibc linking error. I don't know why this fixes it and I can't | |
# be bothered to dig in right now. | |
# | |
# Remove this when it no longer FTBFS on `ring` in CI. | |
CARGO_PROFILE_TEST_BUILD_OVERRIDE_DEBUG: true | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions-rust-lang/setup-rust-toolchain@v1 | |
with: | |
components: clippy | |
- name: Install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y \ | |
libudev-dev | |
shell: bash | |
- name: Run clippy | |
run: cargo clippy --workspace --tests -- -D warnings |