Skip to content

fixes toml sytnax issue #875

fixes toml sytnax issue

fixes toml sytnax issue #875

Workflow file for this run

on: [push, pull_request]
name: CI
env:
CARGO_TERM_COLOR: always
RUSTFLAGS: -D warnings
RUSTDOCFLAGS: -D warnings
PKG_CONFIG_PATH: /usr/lib/pkgconfig
jobs:
Features:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y alsa pkg-config libasound2-dev
export PKG_CONFIG_PATH=/usr/lib/pkgconfig:$PKG_CONFIG_PATH
- name: Check no features
run: cargo check --all-targets --no-default-features
- name: Check listen feature
run: cargo check --all-targets --no-default-features --features=listen
- name: Check speak feature
run: cargo check --all-targets --no-default-features --features=speak
- name: Check manage feature
run: cargo check --all-targets --no-default-features --features=manage
Build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y alsa pkg-config libasound2-dev
export PKG_CONFIG_PATH=/usr/lib/pkgconfig:$PKG_CONFIG_PATH
- name: Cargo Build
run: cargo build --all-targets --all-features
Clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y alsa pkg-config libasound2-dev
export PKG_CONFIG_PATH=/usr/lib/pkgconfig:$PKG_CONFIG_PATH
- name: Cargo Clippy
run: cargo clippy --all-targets --all-features
Test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y alsa pkg-config libasound2-dev
export PKG_CONFIG_PATH=/usr/lib/pkgconfig:$PKG_CONFIG_PATH
- name: Cargo Test
run: cargo test --all --all-features
Format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Cargo Fmt
run: cargo fmt --check --all
Documentation:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y alsa pkg-config libasound2-dev
export PKG_CONFIG_PATH=/usr/lib/pkgconfig:$PKG_CONFIG_PATH
- name: Cargo Doc
run: cargo doc --workspace --all-features
Audit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: sudo apt-get update
- name: Install cargo-audit
run: cargo install --locked cargo-audit
- name: Remove Dev Dependencies
run: |
cargo install --locked cargo-hack
cargo hack --remove-dev-deps
cargo generate-lockfile
- name: Cargo Audit
run: cargo audit
Minimal-Versions:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y alsa pkg-config libasound2-dev
export PKG_CONFIG_PATH=/usr/lib/pkgconfig:$PKG_CONFIG_PATH
- name: Install Rust Nightly
run: rustup toolchain install nightly
- name: Cargo Build
run: rustup run nightly cargo build --all-targets --all-features -Z minimal-versions
- name: Cargo Test
run: rustup run nightly cargo test --all --all-features -Z minimal-versions
- name: Remove Dev Dependencies
run: |
cargo install --locked cargo-hack
cargo hack --remove-dev-deps
rustup run nightly cargo generate-lockfile -Z minimal-versions
- name: Cargo Build Without Dev Dependencies
run: rustup run nightly cargo build --all-features -Z minimal-versions
SemVer:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y alsa pkg-config libasound2-dev
export PKG_CONFIG_PATH=/usr/lib/pkgconfig:$PKG_CONFIG_PATH
- name: Install cargo-semver-checks
run: cargo install --locked cargo-semver-checks
- name: Cargo SemVer Checks
run: cargo semver-checks check-release --verbose