Skip to content

Commit d843a2f

Browse files
committed
CI: use different actions
1 parent b4e5eb8 commit d843a2f

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,20 +35,29 @@ jobs:
3535
~/.cargo/bin
3636
key: ${{ runner.os }}-${{ env.MDBOOK_VERSION }}--${{ env.MDBOOK_LINKCHECK2_VERSION }}--${{ env.MDBOOK_TOC_VERSION }}--${{ env.MDBOOK_MERMAID_VERSION }}
3737

38-
- name: Cache linkcheck
39-
uses: actions/cache@v4
38+
- name: Restore cached Linkcheck
39+
id: cache-linkcheck-restore
40+
uses: actions/cache/restore@v4
4041
with:
4142
path: |
4243
~/book/linkcheck
4344
key: ${{ runner.os }}-${{ hashFiles('./book/linkcheck') }}
44-
save-always: true
4545

4646
- name: Install latest nightly Rust toolchain
4747
if: steps.mdbook-cache.outputs.cache-hit != 'true'
4848
run: |
4949
rustup update nightly
5050
rustup override set nightly
5151
52+
- name: Save cached Linkcheck
53+
id: cache-linkcheck-save
54+
if: always() && steps.cache-linkcheck-restore.outputs.cache-hit != 'true'
55+
uses: actions/cache/save@v4
56+
with:
57+
path: |
58+
~/book/linkcheck
59+
key: ${{ runner.os }}-${{ hashFiles('./book/linkcheck') }}
60+
5261
- name: Install Dependencies
5362
if: steps.mdbook-cache.outputs.cache-hit != 'true'
5463
run: |

0 commit comments

Comments
 (0)