Improve workspace caching on CI (#1229)

* improve workspace caching

This improves workspace caching performance by using the workspace parameter of rust-cache@v2.

* apply the same technique here as well
This commit is contained in:
Max Countryman
2022-08-09 15:18:10 +02:00
committed by GitHub
parent 79a0a54bc9
commit 95c6621db9
+8 -2
View File
@@ -26,7 +26,10 @@ jobs:
override: true
profile: minimal
components: clippy, rustfmt
- uses: Swatinem/rust-cache@v1
- uses: Swatinem/rust-cache@v2
with:
key: ${{ matrix.pwd }}
workspaces: ${{ matrix.pwd }}
- name: Check
working-directory: ${{ matrix.pwd }}
run: |
@@ -220,7 +223,10 @@ jobs:
toolchain: beta
override: true
profile: minimal
- uses: Swatinem/rust-cache@v1
- uses: Swatinem/rust-cache@v2
with:
key: ${{ matrix.pwd }}
workspaces: ${{ matrix.pwd }}
- name: Install cargo-sort
run: |
cargo install cargo-sort