diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bc1511b..87be1da 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,4 +1,5 @@ name: Haskell CI + on: pull_request: push: @@ -15,4 +16,4 @@ jobs: with: name: dconf2nix signingKey: "${{ secrets.CACHIX_SIGNING_KEY }}" - - run: nix-build + - run: nix-shell --run "nix-build-uncached default.nix" ci.nix diff --git a/ci.nix b/ci.nix new file mode 100644 index 0000000..4fdb4f2 --- /dev/null +++ b/ci.nix @@ -0,0 +1,8 @@ +{ packages ? import ./pkgs.nix { inherit compiler; }, compiler ? "ghc884" }: + +let + inherit (packages) pkgs; +in + pkgs.mkShell { + buildInputs = [ pkgs.nix-build-uncached ]; + }