Skip to content

Commit e354d0d

Browse files
committed
ci: cache rustdoc
1 parent c586f10 commit e354d0d

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,20 @@ jobs:
3838
toolchain: stable
3939
targets: wasm32-wasip2
4040

41-
- name: Cache
41+
- name: Rust Cache
4242
uses: Swatinem/rust-cache@f13886b937689c021905a6b90929199931d60db1 # v2.8.1
4343

44+
# Swatinem/rust-cache does NOT cache docs, see
45+
# https://github.com/Swatinem/rust-cache/issues/208
46+
- name: Rustdoc Cache
47+
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
48+
with:
49+
path: target/doc
50+
key: v0-${{ runner.os }}-rustdoc-${{ hashFiles('**/Cargo.lock') }}
51+
restore-keys: |
52+
v0-${{ runner.os }}-rustdoc-${{ hashFiles('**/Cargo.lock') }}
53+
v0-${{ runner.os }}-rustdoc-
54+
4455
- name: just check
4556
run: just check
4657
env:

0 commit comments

Comments
 (0)