Add spatial audio effects #2891
Workflow file for this run
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
name: Rust | |
on: | |
push: | |
branches: | |
- main | |
merge_group: {} | |
pull_request: | |
branches: | |
- main | |
types: | |
- opened | |
- reopened | |
- synchronize | |
- ready_for_review | |
env: | |
CARGO_TERM_COLOR: always | |
RUSTFLAGS: --deny warnings | |
RUSTDOCFLAGS: --deny warnings | |
jobs: | |
build: | |
name: Build & Test | |
if: github.event.pull_request.draft == false | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Create LFS file list | |
run: git lfs ls-files -l | cut -d' ' -f1 | sort > .lfs-assets-id | |
- name: Restore LFS cache | |
uses: actions/cache@v3 | |
with: | |
path: .git/lfs | |
key: lfs-${{ runner.os }}-${{ hashFiles('.lfs-assets-id') }}-v1 | |
- name: Git LFS Pull | |
run: git lfs pull | |
- uses: dtolnay/rust-toolchain@stable | |
with: | |
components: clippy | |
- name: Rust Cache | |
uses: actions/cache@v3 | |
id: rust-cache | |
with: | |
path: | | |
~/.cargo/bin/ | |
~/.cargo/registry/index/ | |
~/.cargo/registry/cache/ | |
~/.cargo/git/db/ | |
target/ | |
key: tests-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }} | |
restore-keys: | | |
tests-${{ runner.os }}- | |
- name: Install Linux Dependencies | |
if: ${{ matrix.os == 'ubuntu-latest' }} | |
run: | | |
sudo apt-get update | |
sudo apt-get install --no-install-recommends -y libasound2-dev libudev-dev | |
- run: rustc --version && cargo --version && cargo clippy --version | |
- name: Build | |
run: cargo build --verbose --all-targets --all-features --locked | |
- name: Clippy | |
run: cargo clippy --all --all-targets --all-features --workspace -- --deny warnings | |
- name: Test | |
run: cargo test --verbose --all-features --workspace | |
format: | |
name: Test Formatting | |
if: github.event.pull_request.draft == false | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dtolnay/rust-toolchain@nightly | |
with: | |
components: rustfmt | |
- run: cargo +nightly fmt --version | |
- run: cargo +nightly fmt --all -- --check | |
udeps: | |
name: Check Unused Dependencies | |
if: github.event.pull_request.draft == false | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/cache@v3 | |
with: | |
path: | | |
~/.cargo/bin/ | |
~/.cargo/registry/index/ | |
~/.cargo/registry/cache/ | |
~/.cargo/git/db/ | |
target/ | |
key: udeps-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }} | |
restore-keys: | | |
udeps-${{ runner.os }}- | |
- uses: dtolnay/rust-toolchain@nightly | |
- name: Install cargo-udeps | |
run: cargo install --force cargo-udeps | |
- name: Install alsa and udev | |
run: sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev | |
- name: Run cargo-udeps | |
run: cargo udeps | |
comments: | |
name: Check Code Comments | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Forgotten TODOs | |
run: bash tools/todos.sh |