Skip to content

Commit 6cf8bed

Browse files
authored
Merge pull request #156 from influxdata/crepererum/doc-cache
ci: cache rustdoc
2 parents 66ac1c5 + f2236ef commit 6cf8bed

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,20 @@ jobs:
6666
toolchain: stable
6767
targets: wasm32-wasip2
6868

69-
- name: Cache
69+
- name: Rust Cache
7070
uses: Swatinem/rust-cache@f13886b937689c021905a6b90929199931d60db1 # v2.8.1
7171

72+
# Swatinem/rust-cache does NOT cache docs, see
73+
# https://github.com/Swatinem/rust-cache/issues/208
74+
- name: Rustdoc Cache
75+
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
76+
with:
77+
path: target/doc
78+
key: v0-${{ runner.os }}-rustdoc-${{ hashFiles('**/Cargo.lock') }}
79+
restore-keys: |
80+
v0-${{ runner.os }}-rustdoc-${{ hashFiles('**/Cargo.lock') }}
81+
v0-${{ runner.os }}-rustdoc-
82+
7283
- name: just check
7384
run: just check
7485
env:
@@ -83,3 +94,4 @@ jobs:
8394
with:
8495
name: docs
8596
path: target/doc
97+
if-no-files-found: error

0 commit comments

Comments
 (0)