CI: Install only necessary components (#218)
* CI: Install only necessary components
This commit is contained in:
6
.github/workflows/check-and-lint.yaml
vendored
6
.github/workflows/check-and-lint.yaml
vendored
@@ -23,8 +23,7 @@ jobs:
|
|||||||
uses: dtolnay/rust-toolchain@master
|
uses: dtolnay/rust-toolchain@master
|
||||||
with:
|
with:
|
||||||
toolchain: '${{ env.RUST_VER }}'
|
toolchain: '${{ env.RUST_VER }}'
|
||||||
targets: ${{ matrix.target }}
|
components: rustfmt
|
||||||
components: clippy, rustfmt
|
|
||||||
|
|
||||||
- name: Run cargo fmt
|
- name: Run cargo fmt
|
||||||
run: |
|
run: |
|
||||||
@@ -72,8 +71,7 @@ jobs:
|
|||||||
uses: dtolnay/rust-toolchain@master
|
uses: dtolnay/rust-toolchain@master
|
||||||
with:
|
with:
|
||||||
toolchain: '${{ env.RUST_VER }}'
|
toolchain: '${{ env.RUST_VER }}'
|
||||||
targets: ${{ matrix.target }}
|
components: clippy
|
||||||
components: clippy, rustfmt
|
|
||||||
|
|
||||||
- name: Setup Rust Cache
|
- name: Setup Rust Cache
|
||||||
uses: Swatinem/rust-cache@v2
|
uses: Swatinem/rust-cache@v2
|
||||||
|
|||||||
Reference in New Issue
Block a user