Skip to content

chore: fix clippy warnings and run rustfmt before PR #161

chore: fix clippy warnings and run rustfmt before PR

chore: fix clippy warnings and run rustfmt before PR #161

Workflow file for this run

name: Rust
on:
push:
branches: ["*"]
pull_request:
branches: ["*"]
env:
CARGO_TERM_COLOR: always
jobs:
build-with-pulseaudio:
name: Build with PulseAudio
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y libgtk-3-dev libglib2.0-dev libasound2-dev libpulse-dev
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: 1.85.0
override: true
components: rustfmt, clippy
- name: Cargo fmt
run: cargo fmt --all -- --check
- name: Cargo clippy with PulseAudio
run: cargo clippy --features pulseaudio -- -D warnings
- name: Cargo build with PulseAudio
run: cargo build --verbose --features pulseaudio
- name: Cargo test with PulseAudio
run: cargo test --verbose --features pulseaudio
build-without-pulseaudio:
name: Build without PulseAudio
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y libgtk-3-dev libglib2.0-dev libasound2-dev
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: 1.85.0
override: true
components: rustfmt, clippy
- name: Cargo clippy without PulseAudio
run: cargo clippy -- -D warnings
- name: Cargo build without PulseAudio
run: cargo build --verbose
- name: Cargo test without PulseAudio
run: cargo test --verbose