From a27c8f3b7fcb4869b28d2a8b8c4f57081ac94afa Mon Sep 17 00:00:00 2001 From: Kevin Reid Date: Wed, 24 Jul 2024 18:37:50 -0700 Subject: [PATCH] CI: Cache wasm target directory. --- .github/workflows/ci.yml | 13 ++++++++++++- .github/workflows/unstable-ci.yml | 3 +++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 51693dbb8..5aaa32f9f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -128,7 +128,9 @@ jobs: # Override the default job-id-based key explicitly so that our dependent jobs can # reuse this cache. shared-key: "build" - + workspaces: | + ./ + all-is-cubes-wasm/ - run: df -h . @@ -269,6 +271,9 @@ jobs: shared-key: "lint" # Job's likely to fail and yet have useful cache material. cache-on-failure: true + workspaces: | + ./ + all-is-cubes-wasm/ - name: Install tools run: | @@ -329,6 +334,9 @@ jobs: prefix-key: "v1-rust-ubuntu-stable-locked" shared-key: "build" save-if: false + workspaces: | + ./ + all-is-cubes-wasm/ # break this out as a separate non-silenced build step - name: Compile xtask @@ -391,6 +399,9 @@ jobs: prefix-key: "v1-rust-ubuntu-stable-locked" shared-key: "build" save-if: false + workspaces: | + ./ + all-is-cubes-wasm/ # Install cargo-mutants # This should usually be already installed, but is present in case of cache miss diff --git a/.github/workflows/unstable-ci.yml b/.github/workflows/unstable-ci.yml index ab90cc4fe..32a679b2e 100644 --- a/.github/workflows/unstable-ci.yml +++ b/.github/workflows/unstable-ci.yml @@ -87,6 +87,9 @@ jobs: with: # This is not necessary for keying, but makes the GHA cache viewing page more helpful. prefix-key: "v1-rust-unstablefeatures-${{ matrix.os }}-${{ matrix.depversions }}" + workspaces: | + ./ + all-is-cubes-wasm/ # break this out as a separate non-silenced build step - name: Compile xtask