cargo: bump the cargo-dependencies group across 1 directory with 13 updates #350
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/[email protected] | |
- uses: taiki-e/[email protected] | |
with: | |
tool: cargo-hack | |
- uses: Swatinem/[email protected] | |
- 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/[email protected] | |
- uses: taiki-e/[email protected] | |
with: | |
tool: cargo-hack | |
- uses: Swatinem/[email protected] | |
- name: test | |
run: cargo hack test --feature-powerset --exclude-features failing_tests | |
clippy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- name: Install Rust | |
uses: dtolnay/rust-toolchain@7b1c307e0dcbda6122208f10795a713336a9b35a | |
with: | |
toolchain: stable | |
components: clippy | |
- uses: Swatinem/[email protected] | |
- name: clippy | |
run: cargo clippy --all-features --all-targets --no-deps | |
fmt: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- uses: Swatinem/[email protected] | |
- name: fmt | |
run: cargo fmt --check | |
doc: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- uses: Swatinem/[email protected] | |
- name: doc | |
run: cargo doc --all-features | |
minimal: | |
runs-on: ubuntu-latest | |
name: ubuntu / stable / minimal-versions | |
steps: | |
- uses: actions/[email protected] | |
- 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/[email protected] | |
- 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/[email protected] | |
- name: Install Rust | |
uses: dtolnay/rust-toolchain@7b1c307e0dcbda6122208f10795a713336a9b35a | |
with: | |
toolchain: stable | |
- uses: Swatinem/[email protected] | |
- uses: taiki-e/[email protected] | |
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/[email protected] | |
- name: Install Rust | |
uses: dtolnay/rust-toolchain@7b1c307e0dcbda6122208f10795a713336a9b35a | |
with: | |
toolchain: stable | |
- uses: Swatinem/[email protected] | |
- name: "Is lockfile updated?" | |
run: cargo update --workspace --locked |