Skip to content

Commit

Permalink
CI: Cache wasm target directory.
Browse files Browse the repository at this point in the history
  • Loading branch information
kpreid committed Jul 25, 2024
1 parent 418afee commit a27c8f3
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 .

Expand Down Expand Up @@ -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: |
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/unstable-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a27c8f3

Please sign in to comment.