Skip to content

Clippy, and Add 'Continue' as an executable command! #1415

Clippy, and Add 'Continue' as an executable command!

Clippy, and Add 'Continue' as an executable command! #1415

Workflow file for this run

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