Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 8 additions & 14 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: CI
on:
on:
pull_request:
push:
branches:
Expand All @@ -20,47 +20,42 @@ jobs:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- run: sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev libwayland-dev
- run: cargo check --workspace --all-features --all-targets
- run: cargo check --all-features --all-targets
Comment thread
nixonyh marked this conversation as resolved.

check-no-defaults:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- run: sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev
- run: cargo check --workspace --no-default-features
- run: cargo check --no-default-features

clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- run: sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev libwayland-dev
- run: rustup component add clippy
- run: cargo clippy --workspace --all-features --all-targets -- -D warnings
- run: cargo clippy --all-features --all-targets -- -D warnings

doc:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- run: sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev
- run: cargo doc --workspace --all-features --no-deps --document-private-items
- run: cargo doc --all-features --no-deps --document-private-items
env:
RUSTDOCFLAGS: -D warnings

test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- run: sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev libwayland-dev
- run: cargo test --workspace --all-features --all-targets
- run: cargo test --all-features --all-targets

# Note: cargo test --all-targets disables doc tests, so we have to add this to test docs
doctest:
Expand All @@ -69,5 +64,4 @@ jobs:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- run: sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev libwayland-dev
- run: cargo test --workspace --all-features --doc
- run: cargo test --all-features --doc
Loading
Loading