use AudioAdapter to be generic over buffer layout and sample format #515
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
on: [push, pull_request] | |
name: CI test and lint | |
jobs: | |
check_test: | |
name: Check and test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
- name: Install toolchain | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
components: rustfmt, clippy | |
- name: Run cargo check | |
run: cargo check | |
- name: Run cargo check no features | |
run: cargo check --no-default-features | |
- name: Run cargo test | |
run: cargo test | |
lints: | |
name: Lints | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
- name: Install toolchain | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
components: rustfmt, clippy | |
- name: Run cargo fmt | |
run: cargo fmt --all -- --check | |
- name: Run cargo clippy | |
run: cargo clippy -- -D warnings | |
check_test_aarch64: | |
name: Check and test Linux arm 64bit | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
- name: Install toolchain | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
targets: aarch64-unknown-linux-gnu | |
- name: Install cross | |
run: cargo install cross --git https://github.com/cross-rs/cross | |
- name: Run cargo check on arm | |
run: cross check --target aarch64-unknown-linux-gnu | |
- name: Run cargo test on arm | |
run: cross test --target aarch64-unknown-linux-gnu | |
check_test_wasm32: | |
name: Check wasm32 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
- name: Install toolchain | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
targets: wasm32-wasi | |
- name: Install cargo-wasi | |
run: cargo install cargo-wasi | |
- name: Run cargo check on wasm32 | |
run: cargo wasi check | |