diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fab565fb..f410e97f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/flake.nix b/flake.nix index ae4b5bbf..07f6c81f 100644 --- a/flake.nix +++ b/flake.nix @@ -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; [ @@ -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; };