CI: Install only necessary components (#218)

* CI: Install only necessary components
This commit is contained in:
Guilherme Silva
2022-11-24 16:15:13 -03:00
committed by GitHub
parent b4407963ad
commit f2c7e4848e

View File

@@ -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