Bump clap from 3.2.25 to 4.5.26 #688
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: Rust | |
on: | |
push: | |
branches: [ MAIN ] | |
pull_request: | |
branches: [ MAIN ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
SCCACHE_GHA_ENABLED: "true" | |
RUSTC_WRAPPER: "sccache" | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install latest stable | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
override: true | |
components: rustc | |
- name: Sccache Action | |
uses: Mozilla-Actions/[email protected] | |
- name: Build | |
run: cargo build --release --verbose | |
- name: Run tests | |
run: cargo test --release --verbose | |
build-lib-msrv: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install oldest supported Rust version | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: "1.64" | |
override: true | |
components: rustc | |
- name: Cache | |
uses: Swatinem/[email protected] | |
- name: Build | |
run: cargo build --release --verbose --workspace --exclude zsplit-cli | |
- name: Run tests | |
run: cargo test --release --verbose --workspace --exclude zsplit-cli | |
build-all-msrv: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install oldest supported Rust version | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: "1.74" | |
override: true | |
components: rustc | |
- name: Cache | |
uses: Swatinem/[email protected] | |
- name: Build | |
run: cargo build --release --verbose | |
lints: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install latest stable | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
override: true | |
components: 'rustfmt, clippy' | |
- name: Install clippy-sarif | |
uses: baptiste0928/[email protected] | |
env: | |
RUSTC_WRAPPER: "" | |
with: | |
crate: clippy-sarif | |
- name: Install sarif-fmt | |
uses: baptiste0928/[email protected] | |
env: | |
RUSTC_WRAPPER: "" | |
with: | |
crate: sarif-fmt | |
- name: Format | |
uses: actions-rs/cargo@v1 | |
with: | |
command: fmt | |
args: '-- --check' | |
- name: Run rust-clippy | |
run: | |
cargo clippy | |
--message-format=json | clippy-sarif | tee rust-clippy-results.sarif | sarif-fmt | |
continue-on-error: true | |
- name: Upload analysis results to GitHub | |
uses: github/codeql-action/upload-sarif@v3 | |
with: | |
sarif_file: rust-clippy-results.sarif | |
category: clippy | |
wait-for-processing: true | |
- name: Run rust-clippy for check | |
run: | |
cargo clippy -- -D warnings |