~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('.cache_key') }}-${{ hashFiles('**/Cargo.toml','**/Cargo.lock') }}
- - name: Set default toolchain
- run: rustup default ${{ matrix.rust }}
- - name: Set profile
- run: rustup set profile minimal
- - name: Add clippy
- run: rustup component add clippy
+ - name: Setup Rust Toolchain
+ uses: actions-rs/toolchain@v1
+ with:
+ toolchain: ${{ matrix.rust }}
+ profile: minimal
+ override: true
+ components: rustfmt, clippy
- name: Build
run: cargo build --features ${{ matrix.features }} --no-default-features
- name: Clippy