name: Setup Rust (cache & toolchain) runs: using: composite steps: - name: Cargo cache uses: actions/cache@v3 with: path: | ~/.cargo/bin/ ~/.cargo/registry/index/ ~/.cargo/registry/cache/ ~/.cargo/git/db/ target/ key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} - name: Install toolchain 1.75.0 uses: actions-rs/toolchain@v1 with: profile: minimal toolchain: 1.75.0 components: rustfmt, clippy