fix(ci): install rustfmt and clippy components
The CI was failing because rustfmt is not installed by default in the rust:latest Docker image. Error: 'cargo-fmt' is not installed for the toolchain '1.94.0' Solution: - Add 'rustup component add rustfmt clippy' step - This installs both rustfmt and clippy before running lint checks This allows the fmt and clippy checks to run successfully.
This commit is contained in:
parent
5f64b57266
commit
e2747bc603
1 changed files with 4 additions and 0 deletions
|
|
@ -30,6 +30,10 @@ jobs:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Install Rust components
|
||||||
|
run: |
|
||||||
|
rustup component add rustfmt clippy
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
apt-get update && apt-get install -y pkg-config libssl-dev
|
apt-get update && apt-get install -y pkg-config libssl-dev
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue