Install extra components for lint workflow

Install rustfmt for workflows that call `cargo test`, to make sure
rustfmt is available for the `win_bindings` codegen test.
This commit is contained in:
Dirkjan Ochtman 2025-09-26 09:07:59 +02:00
parent f3fd15f976
commit 0f016846f1
2 changed files with 7 additions and 0 deletions

View File

@ -20,6 +20,7 @@ jobs:
- uses: dtolnay/rust-toolchain@stable
with:
targets: x86_64-unknown-linux-gnu, x86_64-pc-windows-msvc
components: clippy, rustfmt
- uses: Swatinem/rust-cache@v2
- run: cargo fmt --check -- --color=always
- run: cargo fmt --check --manifest-path fuzz/Cargo.toml

View File

@ -19,6 +19,8 @@ jobs:
steps:
- uses: actions/checkout@v5
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- uses: Swatinem/rust-cache@v2
- run: cargo test ${{ env.ALL_NON_EXCLUSIVE_FEATURES }} --color=always -- --color=always
@ -52,6 +54,7 @@ jobs:
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust_version }}
components: rustfmt
- uses: Swatinem/rust-cache@v2
- run: cargo check --manifest-path bench/Cargo.toml --benches
- run: cargo check --manifest-path fuzz/Cargo.toml --all-targets
@ -68,6 +71,8 @@ jobs:
steps:
- uses: actions/checkout@v5
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- uses: taiki-e/install-action@cargo-hack
- uses: Swatinem/rust-cache@v2
- run: |
@ -130,6 +135,7 @@ jobs:
- uses: dtolnay/rust-toolchain@stable
with:
targets: wasm32-unknown-unknown
components: rustfmt
- uses: Swatinem/rust-cache@v2
- uses: actions/setup-node@v5
- uses: jetli/wasm-pack-action@v0.4.0