Skip to content

refactor: trim redundant wrappers and dead code #36

refactor: trim redundant wrappers and dead code

refactor: trim redundant wrappers and dead code #36

Workflow file for this run

name: rust
on:
pull_request:
paths:
- "**/*.rs"
- "**/Cargo.toml"
- "**/Cargo.lock"
- "rust-toolchain.toml"
- ".clippy.toml"
- ".rustfmt.toml"
- ".github/workflows/rust.yaml"
- "flake.lock"
- "flake.nix"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-rust
cancel-in-progress: true
permissions:
contents: read
actions: write
id-token: write
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: ./.github/actions/setup-nix
- uses: ./.github/actions/setup-rust-cache
- run: nix develop .#ci --quiet --command cargo fmt --all -- --check
# wisp-desktop is macOS-only (GPUI + WispAudioKit); Linux lacks the X11
# libs GPUI links against. macOS coverage lives in rust-macos.yaml.
- run: nix develop .#ci --quiet --command cargo clippy --workspace --exclude wisp-desktop --all-targets -- -D warnings
- run: nix develop .#ci --quiet --command cargo test --workspace --exclude wisp-desktop --all-targets