aboutsummaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2023-11-07 12:29:39 +0000
committerIan Jackson <ijackson@chiark.greenend.org.uk>2023-11-07 12:32:17 +0000
commit59ff015aa550dd553771a5b767c9cb173502142d (patch)
treea9b3c48bb45a53c8e2855354d384eff19acefadb /.gitlab-ci.yml
parent66d37e763185e7d4697cf22e7aa0455281f4dbec (diff)
downloadtorspec-59ff015aa550dd553771a5b767c9cb173502142d.tar.gz
torspec-59ff015aa550dd553771a5b767c9cb173502142d.zip
CI: Cache the built copy of mdbook
This should make the CI complete in seconds rather than ~ a minute.
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml5
1 files changed, 4 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index f01e598..1b82c3c 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -5,7 +5,7 @@ variables:
build:
image: rust:bookworm
script:
- - cargo install mdbook
+ - ./bin/via-cargo-install-in-ci mdbook
- apt-get update && apt-get install -y git python3 python3-yaml
- ./bin/check_index
- ./bin/build_html
@@ -13,6 +13,9 @@ build:
artifacts:
paths:
- public
+ cache:
+ paths:
+ - cache
include:
project: tpo/tpa/ci-templates