mirror of
https://github.com/wez/wezterm.git
synced 2024-11-23 23:21:08 +03:00
ci: maybe improve caching for pages workflow
This commit is contained in:
parent
c44fd1a006
commit
c16ea9b134
23
.github/workflows/pages.yml
vendored
23
.github/workflows/pages.yml
vendored
@ -25,21 +25,26 @@ jobs:
|
||||
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain stable
|
||||
source $HOME/.cargo/env
|
||||
rustup update stable
|
||||
- name: Cache mdBook
|
||||
uses: actions/cache@v1
|
||||
- uses: actions/cache@v3
|
||||
with:
|
||||
path: ~/mdbook-bin
|
||||
key: cargo-bin-mdbook-2
|
||||
path: |
|
||||
~/.cargo/bin/
|
||||
~/.cargo/registry/index/
|
||||
~/.cargo/registry/cache/
|
||||
~/.cargo/git/db/
|
||||
key: ${{ runner.os }}-cargo-mdbook
|
||||
- name: Install mdBook
|
||||
run: |
|
||||
mkdir -p ~/mdbook-bin
|
||||
(test -x ~/mdbook-bin/mdbook || (cd && cargo install --vers "^0.4" mdbook && cp -p ~/.cargo/bin/mdbook ~/mdbook-bin))
|
||||
(test -x ~/mdbook-bin/mdbook-linkcheck || (cd && cargo install mdbook-linkcheck && cp -p ~/.cargo/bin/mdbook-linkcheck ~/mdbook-bin))
|
||||
(test -x ~/mdbook-bin/mdbook-mermaid || (cd && cargo install mdbook-mermaid && cp -p ~/.cargo/bin/mdbook-mermaid ~/mdbook-bin))
|
||||
(test -x ~/.cargo/bin/mdbook || (cd && cargo install --vers "^0.4" mdbook))
|
||||
- name: Install mdBook linkcheck
|
||||
run: |
|
||||
(test -x ~/.cargo/bin/mdbook-linkcheck || (cd && cargo install mdbook-linkcheck))
|
||||
- name: Install mdBook mermaid
|
||||
run: |
|
||||
(test -x ~/.cargo/bin/mdbook-mermaid || (cd && cargo install mdbook-mermaid))
|
||||
- name: Build
|
||||
run: |
|
||||
source $HOME/.cargo/env
|
||||
PATH="$HOME/mdbook-bin:$PATH"
|
||||
./ci/build-docs.sh
|
||||
- name: Deploy
|
||||
if: success()
|
||||
|
Loading…
Reference in New Issue
Block a user