Update Rust crate clap to 4.4.11 (#35) #62
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: CI | |
run-name: ${{ inputs.reason }} | |
on: | |
push: | |
paths: | |
- .github/workflows/ci.yaml | |
- src/** | |
- build.rs | |
- Cargo.* | |
pull_request: | |
branches: | |
- main | |
paths: | |
- .github/workflows/ci.yaml | |
- src/** | |
- build.rs | |
- Cargo.* | |
workflow_dispatch: | |
inputs: | |
reason: | |
description: Dispatch reason | |
required: true | |
type: string | |
env: | |
CARGO_TERM_COLOR: always | |
RUSTFLAGS: -D warnings | |
jobs: | |
ci: | |
name: Run CI | |
strategy: | |
matrix: | |
os: | |
- ubuntu-latest | |
- macos-latest | |
- windows-latest | |
toolchain: | |
- stable | |
- nightly | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup Rust problem matchers | |
uses: r7kamura/rust-problem-matchers@main | |
- name: Setup or update Rust ${{ matrix.toolchain }} toolchain | |
run: rustup toolchain install ${{ matrix.toolchain }} --profile default | |
- name: Setup Rust cache | |
uses: Swatinem/rust-cache@v2 | |
with: | |
key: ${{ matrix.toolchain }} | |
- name: Check code format | |
run: cargo +${{ matrix.toolchain }} fmt --verbose --all --check | |
- name: Check code lint | |
if: '!cancelled()' | |
run: cargo +${{ matrix.toolchain }} clippy --verbose -- -W clippy::nursery |