Skip to content

Commit

Permalink
Build the docs with the ci devShell (#1602)
Browse files Browse the repository at this point in the history
I've noticed that we cannot find the plantuml executable when
doc-building in CI; this fixes that.
  • Loading branch information
noonio authored Sep 7, 2024
1 parent 672e49c commit 6d40870
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/ci-nix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,20 @@ jobs:
# Ensure we have all history with all commits
fetch-depth: 0

- name: ❄ Prepare nix
uses: cachix/install-nix-action@V27
with:
extra_nix_config: |
accept-flake-config = true
log-lines = 1000
- name: Set up and use the "ci" devShell
uses: nicknovitski/nix-develop@v1
with:
arguments: ".#ci"

# Technically, we don't need this, given we're in a Nix shell;
# but we will keep it for the caching.
- name: 🚧 Setup Node.js
uses: actions/setup-node@v4
with:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/publish-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ jobs:
# Also ensure we have all history with all tags
fetch-depth: 0

- name: Set up and use the "ci" devShell
uses: nicknovitski/nix-develop@v1
with:
arguments: ".#ci"

- name: Get released workflow run id
id: released-workflow
uses: actions/github-script@v7
Expand Down
2 changes: 2 additions & 0 deletions nix/hydra/shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,8 @@ let
ciShell = pkgs.mkShell {
name = "hydra-ci-shell";
buildInputs = [
# For building docs
pkgs.plantuml
# Note: jq 1.6 has a bug that means it fails to read large integers
# correctly, so we require 1.7+ at least.
pkgsLatest.jq
Expand Down

0 comments on commit 6d40870

Please sign in to comment.