mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-03-28 07:51:07 +00:00
ci: Cache mdbook installs to reduce CI build time
We spend a lot of time installing and compiling `mdbook` from source. This caches `mdbook` across builds.
This commit is contained in:
parent
7936e1eb27
commit
5b86ee0c18
@ -69,7 +69,14 @@ matrix:
|
|||||||
|
|
||||||
# Build the guide.
|
# Build the guide.
|
||||||
- rust: stable
|
- rust: stable
|
||||||
script: (cd guide && cargo install mdbook --vers "^0.1.0" && mdbook build)
|
cache:
|
||||||
|
- cargo
|
||||||
|
before_script:
|
||||||
|
- (test -x $HOME/.cargo/bin/cargo-install-update || cargo install cargo-update)
|
||||||
|
- (test -x $HOME/.cargo/bin/mdbook || cargo install --vers "^0.1" mdbook)
|
||||||
|
- cargo install-update -a
|
||||||
|
script:
|
||||||
|
- (cd guide && mdbook build)
|
||||||
deploy:
|
deploy:
|
||||||
provider: pages
|
provider: pages
|
||||||
skip-cleanup: true
|
skip-cleanup: true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user