Skip to content

Commit

Permalink
Use Clippy for CI checks
Browse files Browse the repository at this point in the history
  • Loading branch information
RReverser committed Jan 16, 2024
1 parent 50844f0 commit f798dab
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,20 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Build maximum configuration with all targets
run: cargo build --all-targets --features all-devices,client,server
run: cargo clippy --all-targets --features all-devices,client,server
# Temporarily disable dev-dependencies to verify that library compiles without them.
# Otherwise it's easy to miss accidental strong dependency on dev-dependencies.
- name: Disable dev-dependencies
run: sed -i 's/\[dev-dependencies]/[hide-dev-dependencies]/' Cargo.toml
- name: Build library with maximum configuration
run: cargo build --features all-devices,client,server
run: cargo clippy --features all-devices,client,server
# Try couple of different combinations of features to make sure we didn't mess up with #[cfg(...)]
# Try all of them in succession rather than in Github matrix so that build cache is reused more easily.
- name: Build client+camera
run: cargo build --features client,camera
run: cargo clippy --features client,camera
- name: Build client+telescope
run: cargo build --features client,telescope
run: cargo clippy --features client,telescope
- name: Build server+camera
run: cargo build --features server,camera
run: cargo clippy --features server,camera
- name: Build server+telescope
run: cargo build --features server,telescope
run: cargo clippy --features server,telescope

0 comments on commit f798dab

Please sign in to comment.