diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e58d3c7..dd8bfc1 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -45,22 +45,7 @@ jobs: toolchain: stable override: true - # Caching setup - - name: Cache cargo registry - uses: actions/cache@v1 - with: - path: ~/.cargo/registry - key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }} - - name: Cache cargo index - uses: actions/cache@v1 - with: - path: ~/.cargo/git - key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }} - - name: Cache cargo build - uses: actions/cache@v1 - with: - path: target - key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }} + - uses: Swatinem/rust-cache@v1 - name: Build uses: actions-rs/cargo@v1