cargo: bump the cargo-dependencies group across 1 directory with 9 updates #342
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: ["*"] | |
env: | |
CARGO_TERM_COLOR: always | |
RUSTFLAGS: -D warnings | |
RUSTDOCFLAGS: -D warnings | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macos-14, windows-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4.2.0 | |
- uses: taiki-e/install-action@v2.44.13 | |
with: | |
tool: cargo-hack | |
- uses: Swatinem/rust-cache@v2.7.3 | |
- name: build | |
run: cargo hack build --feature-powerset | |
test: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macos-14, windows-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4.2.0 | |
- uses: taiki-e/install-action@v2.44.13 | |
with: | |
tool: cargo-hack | |
- uses: Swatinem/rust-cache@v2.7.3 | |
- name: test | |
run: cargo hack test --feature-powerset --exclude-features failing_tests | |
clippy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4.2.0 | |
- name: Install Rust | |
uses: dtolnay/rust-toolchain@7b1c307e0dcbda6122208f10795a713336a9b35a | |
with: | |
toolchain: stable | |
components: clippy | |
- uses: Swatinem/rust-cache@v2.7.3 | |
- name: clippy | |
run: cargo clippy --all-features --all-targets --no-deps | |
fmt: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4.2.0 | |
- uses: Swatinem/rust-cache@v2.7.3 | |
- name: fmt | |
run: cargo fmt --check | |
doc: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4.2.0 | |
- uses: Swatinem/rust-cache@v2.7.3 | |
- name: doc | |
run: cargo doc --all-features | |
minimal: | |
runs-on: ubuntu-latest | |
name: ubuntu / stable / minimal-versions | |
steps: | |
- uses: actions/checkout@v4.2.0 | |
- name: Install stable | |
uses: dtolnay/rust-toolchain@7b1c307e0dcbda6122208f10795a713336a9b35a | |
with: | |
toolchain: stable | |
- name: Install nightly for -Zminimal-versions | |
uses: dtolnay/rust-toolchain@7b1c307e0dcbda6122208f10795a713336a9b35a | |
with: | |
toolchain: nightly | |
- name: rustup default stable | |
run: rustup default stable | |
- uses: Swatinem/rust-cache@v2.7.3 | |
- name: cargo update -Zminimal-versions | |
run: cargo +nightly update -Zminimal-versions | |
- name: cargo check | |
run: cargo check --locked --all-features | |
msrv: | |
name: "Check MSRV" | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4.2.0 | |
- name: Install Rust | |
uses: dtolnay/rust-toolchain@7b1c307e0dcbda6122208f10795a713336a9b35a | |
with: | |
toolchain: stable | |
- uses: Swatinem/rust-cache@v2.7.3 | |
- uses: taiki-e/install-action@v2.44.13 | |
with: | |
tool: cargo-hack | |
- name: Default features | |
run: cargo hack check --feature-powerset --locked --rust-version --ignore-private --workspace --all-targets | |
lockfile: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4.2.0 | |
- name: Install Rust | |
uses: dtolnay/rust-toolchain@7b1c307e0dcbda6122208f10795a713336a9b35a | |
with: | |
toolchain: stable | |
- uses: Swatinem/rust-cache@v2.7.3 | |
- name: "Is lockfile updated?" | |
run: cargo update --workspace --locked |