mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-03-16 02:00:51 +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.
|
||||
- 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:
|
||||
provider: pages
|
||||
skip-cleanup: true
|
||||
|
Loading…
x
Reference in New Issue
Block a user