Skip to content

Commit

Permalink
Add a book-dev devShell providing mdbook. Check book build in CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchmindtree committed May 30, 2023
1 parent 51fa738 commit 4547097
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,16 @@ jobs:
name: fuellabs
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- run: nix develop --print-build-logs --no-update-lock-file .#fuel-dev

nix-build-book:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.4.0
- uses: cachix/install-nix-action@v20
with:
nix_path: nixpkgs=channel:nixos-unstable
- uses: cachix/cachix-action@v12
with:
name: fuellabs
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- run: nix develop .#book-dev --command cd book && mdbook build
6 changes: 6 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,11 @@
};

mkDevShells = pkgs: fuelpkgs: rec {
book-dev = pkgs.mkShell {
name = "book-dev";
buildInputs = [pkgs.mdbook];
};

fuel-core-dev = pkgs.mkShell {
name = "fuel-core-dev";
inputsFrom = with fuelpkgs; [
Expand Down Expand Up @@ -264,6 +269,7 @@
inherit (fuel-core-dev) LIBCLANG_PATH ROCKSDB_LIB_DIR PROTOC NIX_CFLAGS_COMPILE;
inherit (fuel-indexer-dev) SQLX_OFFLINE;
};

default = fuel-dev;
};

Expand Down

0 comments on commit 4547097

Please sign in to comment.