Skip to content

Commit 42f01a4

Browse files
committed
ci: Cache Rust compilation and cargo dependencies
I noticed that Wasmtime uses almost no cache for its GitHub Actions workflows. Let's see how well adding a cache for `target` plus various `cargo` dirs works.
1 parent 136500e commit 42f01a4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/actions/install-rust/action.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,3 +74,9 @@ runs:
7474
- name: Install the WASI target
7575
shell: bash
7676
run: rustup target add wasm32-wasip1 wasm32-unknown-unknown
77+
78+
- name: Set up cargo cache
79+
uses: Swatinem/rust-cache@94b28bf00e42c2b783e7dd289d30da129b46838b
80+
with:
81+
cache-all-crates: "true"
82+
cache-workspace-crates: "true"

0 commit comments

Comments
 (0)