ci: add missing rustup components (#1166)

This commit is contained in:
SteveLauC
2025-06-10 15:43:21 +08:00
committed by GitHub
parent 1d136a6635
commit 6e6b3dcbfe

View File

@@ -22,6 +22,7 @@ jobs:
env: env:
TERM: xterm-256color TERM: xterm-256color
run: | run: |
rustup component add rustfmt
cargo fmt --all -- --check cargo fmt --all -- --check
step-enum-sorted: step-enum-sorted:
@@ -96,7 +97,9 @@ jobs:
run: ${{ matrix.use_cross == true && 'cross' || 'cargo' }} check --locked --target ${{ matrix.target }} run: ${{ matrix.use_cross == true && 'cross' || 'cargo' }} check --locked --target ${{ matrix.target }}
- name: Run cargo/cross clippy - 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 - name: Run cargo test
# ONLY run test with cargo # ONLY run test with cargo