cargo fmt #1404
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: Build & Test | |
on: [ push, pull_request, workflow_call ] | |
jobs: | |
check_linux: | |
name: Checking for Linux | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: "Install Dependencies" | |
run: | | |
sudo apt-get update | |
sudo apt-get install libdbus-1-dev pkg-config libspeechd-dev | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@stable | |
with: | |
components: clippy | |
- name: Preparing Cache.. | |
uses: actions/cache@v4 | |
continue-on-error: false | |
with: | |
path: | | |
~/.cargo/bin/ | |
~/.cargo/registry/index/ | |
~/.cargo/registry/cache/ | |
~/.cargo/git/db/ | |
target/ | |
key: ${{ runner.os }}-cargo-debug-${{ hashFiles('**/Cargo.lock') }} | |
restore-keys: ${{ runner.os }}-cargo-debug- | |
- name: Running Tests | |
run: cargo check --all-features | |
- name: Checking Formatting | |
run: cargo fmt --all -- --check | |
- name: Performing Clippy Test | |
run: cargo clippy --all-targets --all-features -- -D warnings | |
check_macos: | |
name: Checking for MacOS | |
runs-on: macos-12 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@stable | |
with: | |
components: clippy | |
- name: Preparing Cache.. | |
uses: actions/cache@v4 | |
continue-on-error: false | |
with: | |
path: | | |
~/.cargo/bin/ | |
~/.cargo/registry/index/ | |
~/.cargo/registry/cache/ | |
~/.cargo/git/db/ | |
target/ | |
key: ${{ runner.os }}-cargo-debug-${{ hashFiles('**/Cargo.lock') }} | |
restore-keys: ${{ runner.os }}-cargo-debug- | |
- name: Running Tests | |
run: cargo check --all-features | |
- name: Checking Formatting | |
run: cargo fmt --all -- --check | |
- name: Performing Clippy Test | |
run: cargo clippy --all-targets --all-features -- -D warnings | |
check_windows: | |
name: Checking for Windows | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@stable | |
with: | |
components: clippy | |
- name: Preparing Cache.. | |
uses: actions/cache@v4 | |
continue-on-error: false | |
with: | |
path: | | |
~/.cargo/bin/ | |
~/.cargo/registry/index/ | |
~/.cargo/registry/cache/ | |
~/.cargo/git/db/ | |
target/ | |
key: ${{ runner.os }}-cargo-debug-${{ hashFiles('**/Cargo.lock') }} | |
restore-keys: ${{ runner.os }}-cargo-debug- | |
- name: Running Tests | |
run: cargo check --all-features | |
- name: Checking Formatting | |
run: cargo fmt --all -- --check | |
- name: Performing Clippy Test | |
run: cargo clippy --all-targets --all-features -- -D warnings |