2021-04-23 02:34:34 +00:00
|
|
|
name: CI
|
|
|
|
|
|
|
|
on:
|
2024-04-24 01:36:06 +00:00
|
|
|
push:
|
|
|
|
paths-ignore:
|
|
|
|
- 'LICENSE-*'
|
|
|
|
- '**/*.md'
|
|
|
|
- '.gitignore'
|
|
|
|
- 'CHANGELOG.md'
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
pull_request:
|
|
|
|
workflow_dispatch:
|
2021-04-23 02:34:34 +00:00
|
|
|
|
|
|
|
env:
|
2024-04-24 01:36:06 +00:00
|
|
|
CARGO_TERM_COLOR: always
|
2021-04-23 02:34:34 +00:00
|
|
|
|
|
|
|
jobs:
|
2024-04-24 01:36:06 +00:00
|
|
|
test:
|
|
|
|
name: Tests
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Install test dependencies
|
|
|
|
run: |
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get install -y ffmpeg # Need ffprobe for issue #37
|
|
|
|
sudo apt-get install -y opus-tools # Need opusinfo for issue #130
|
|
|
|
- name: Install Rust toolchain
|
|
|
|
uses: dtolnay/rust-toolchain@v1
|
|
|
|
with:
|
|
|
|
toolchain: stable
|
|
|
|
- run: |
|
|
|
|
cargo test --all-features --tests
|
2023-02-24 18:04:40 +00:00
|
|
|
|
2024-04-24 01:36:06 +00:00
|
|
|
docs:
|
|
|
|
name: Docs
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
env:
|
|
|
|
RUSTDOCFLAGS: -Dwarnings
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Install Rust toolchain
|
|
|
|
uses: dtolnay/rust-toolchain@v1
|
|
|
|
with:
|
|
|
|
toolchain: stable
|
|
|
|
- run: |
|
|
|
|
cargo doc --all-features --no-deps
|
|
|
|
cargo test --all-features --doc
|
2023-02-24 18:04:40 +00:00
|
|
|
|
2024-04-24 01:36:06 +00:00
|
|
|
clippy:
|
|
|
|
name: Clippy
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Install Rust toolchain
|
|
|
|
uses: dtolnay/rust-toolchain@v1
|
|
|
|
with:
|
|
|
|
toolchain: stable
|
|
|
|
components: clippy
|
|
|
|
- run: |
|
|
|
|
cargo clippy --all-features -- -Dclippy::all -Dclippy::pedantic -Dwarnings
|
2023-02-24 18:04:40 +00:00
|
|
|
|
2024-04-24 01:36:06 +00:00
|
|
|
style:
|
|
|
|
name: Style
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Install Rust toolchain
|
|
|
|
uses: dtolnay/rust-toolchain@v1
|
|
|
|
with:
|
|
|
|
toolchain: stable
|
|
|
|
components: rustfmt
|
|
|
|
- run: |
|
|
|
|
cargo fmt -- --check
|