From 95c6621db90128bc0030a8624e30ebe19a2c075c Mon Sep 17 00:00:00 2001 From: Max Countryman Date: Tue, 9 Aug 2022 06:18:10 -0700 Subject: [PATCH] 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 --- .github/workflows/CI.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 4e796d37..75707add 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -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