build(deps): bump clap from 4.5.26 to 4.5.30 #340
Workflow file for this run
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 | |
on: | |
pull_request: | |
push: | |
branches-ignore: | |
- 'dependabot/**' | |
- staging.tmp | |
- trying.tmp | |
schedule: | |
- cron: '0 4 1 * *' # at 04:00 UTC on the first day of each month | |
jobs: | |
cargo-test-ubuntu: | |
name: cargo test (ubuntu-latest) | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
override: true | |
- name: Install ALSA and X11 development libraries | |
run: | | |
sudo apt-get update --assume-yes --quiet --quiet | |
sudo apt-get install --assume-yes --quiet --quiet --no-install-recommends libasound2-dev libxcursor-dev libxi-dev libxinerama-dev libxrandr-dev | |
- name: cargo test (all-targets) | |
uses: actions-rs/cargo@v1 | |
with: | |
command: test | |
args: --verbose --workspace --all-targets -- --include-ignored | |
# `cargo test --all-targets` does not run doctest: https://github.com/rust-lang/cargo/issues/6669. | |
- name: cargo test (doc) | |
uses: actions-rs/cargo@v1 | |
with: | |
command: test | |
args: --verbose --workspace --doc | |
cargo-test: | |
name: cargo test | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [macOS-latest, windows-latest] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
override: true | |
- name: cargo test (all-targets) | |
uses: actions-rs/cargo@v1 | |
with: | |
command: test | |
args: --verbose --workspace --all-targets -- --include-ignored | |
# `cargo test --all-targets` does not run doctest: https://github.com/rust-lang/cargo/issues/6669. | |
- name: cargo test (doc) | |
uses: actions-rs/cargo@v1 | |
with: | |
command: test | |
args: --verbose --workspace --doc | |
cargo-fmt-clippy: | |
name: cargo fmt/clippy | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
components: rustfmt, clippy | |
override: true | |
- name: cargo fmt | |
uses: actions-rs/cargo@v1 | |
with: | |
command: fmt | |
args: --verbose --all -- --check --verbose | |
- name: Install ALSA and X11 development libraries | |
run: | | |
sudo apt-get update --assume-yes --quiet --quiet | |
sudo apt-get install --assume-yes --quiet --quiet --no-install-recommends libasound2-dev libxcursor-dev libxi-dev libxinerama-dev libxrandr-dev | |
- name: cargo clippy | |
uses: actions-rs/cargo@v1 | |
with: | |
command: clippy | |
args: --verbose --workspace --all-targets -- --deny warnings | |
cargo-deny: | |
name: cargo deny | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: cargo deny | |
uses: EmbarkStudios/cargo-deny-action@v2 |