Skip to content

Commit

Permalink
Install doc dependencies before building (#2564)
Browse files Browse the repository at this point in the history
This fixes a Graphviz graph not being rendered in the Kani book.
  • Loading branch information
karkhaz authored Jun 26, 2023
1 parent a071df1 commit 987c9ce
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/kani.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,9 @@ jobs:
- name: Detect unexpected book runner failures
run: ./scripts/ci/detect_bookrunner_failures.sh build/output/latest/html/bookrunner.txt

- name: Install book dependencies
run: ./scripts/setup/ubuntu/install_doc_deps.sh

# On one OS only, build the documentation, too.
- name: Build Documentation
run: ./scripts/build-docs.sh
Expand Down
8 changes: 8 additions & 0 deletions scripts/setup/ubuntu/install_doc_deps.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash
# Copyright Kani Contributors
# SPDX-License-Identifier: Apache-2.0 OR MIT

set -eux

cargo install mdbook-graphviz
DEBIAN_FRONTEND=noninteractive sudo apt-get install --no-install-recommends --yes graphviz

0 comments on commit 987c9ce

Please sign in to comment.