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
|
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain stable
|
||||||
source $HOME/.cargo/env
|
source $HOME/.cargo/env
|
||||||
rustup update stable
|
rustup update stable
|
||||||
- name: Cache mdBook
|
- uses: actions/cache@v3
|
||||||
uses: actions/cache@v1
|
|
||||||
with:
|
with:
|
||||||
path: ~/mdbook-bin
|
path: |
|
||||||
key: cargo-bin-mdbook-2
|
~/.cargo/bin/
|
||||||
|
~/.cargo/registry/index/
|
||||||
|
~/.cargo/registry/cache/
|
||||||
|
~/.cargo/git/db/
|
||||||
|
key: ${{ runner.os }}-cargo-mdbook
|
||||||
- name: Install mdBook
|
- name: Install mdBook
|
||||||
run: |
|
run: |
|
||||||
mkdir -p ~/mdbook-bin
|
(test -x ~/.cargo/bin/mdbook || (cd && cargo install --vers "^0.4" mdbook))
|
||||||
(test -x ~/mdbook-bin/mdbook || (cd && cargo install --vers "^0.4" mdbook && cp -p ~/.cargo/bin/mdbook ~/mdbook-bin))
|
- name: Install mdBook linkcheck
|
||||||
(test -x ~/mdbook-bin/mdbook-linkcheck || (cd && cargo install mdbook-linkcheck && cp -p ~/.cargo/bin/mdbook-linkcheck ~/mdbook-bin))
|
run: |
|
||||||
(test -x ~/mdbook-bin/mdbook-mermaid || (cd && cargo install mdbook-mermaid && cp -p ~/.cargo/bin/mdbook-mermaid ~/mdbook-bin))
|
(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
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
source $HOME/.cargo/env
|
source $HOME/.cargo/env
|
||||||
PATH="$HOME/mdbook-bin:$PATH"
|
|
||||||
./ci/build-docs.sh
|
./ci/build-docs.sh
|
||||||
- name: Deploy
|
- name: Deploy
|
||||||
if: success()
|
if: success()
|
||||||
|
Loading…
Reference in New Issue
Block a user