From 6e6b3dcbfedb351150fbc42312d3414e50b9c607 Mon Sep 17 00:00:00 2001 From: SteveLauC Date: Tue, 10 Jun 2025 15:43:21 +0800 Subject: [PATCH] ci: add missing rustup components (#1166) --- .github/workflows/ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 186ec39d..05de5533 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,6 +22,7 @@ jobs: env: TERM: xterm-256color run: | + rustup component add rustfmt cargo fmt --all -- --check step-enum-sorted: @@ -96,7 +97,9 @@ jobs: run: ${{ matrix.use_cross == true && 'cross' || 'cargo' }} check --locked --target ${{ matrix.target }} - name: Run cargo/cross clippy - run: ${{ matrix.use_cross == true && 'cross' || 'cargo' }} clippy --locked --target ${{ matrix.target }} --all-features -- -D warnings + run: | + rustup component add clippy + ${{ matrix.use_cross == true && 'cross' || 'cargo' }} clippy --locked --target ${{ matrix.target }} --all-features -- -D warnings - name: Run cargo test # ONLY run test with cargo