Skip to content

Commit

Permalink
Merge pull request #26 from gvolpe/ci-nix-build-uncached
Browse files Browse the repository at this point in the history
Optimizing CI build with nix-build-uncached
  • Loading branch information
gvolpe authored Sep 21, 2020
2 parents 1e3b491 + c21cb98 commit 862c3af
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: Haskell CI

on:
pull_request:
push:
Expand All @@ -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
8 changes: 8 additions & 0 deletions ci.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{ packages ? import ./pkgs.nix { inherit compiler; }, compiler ? "ghc884" }:

let
inherit (packages) pkgs;
in
pkgs.mkShell {
buildInputs = [ pkgs.nix-build-uncached ];
}

0 comments on commit 862c3af

Please sign in to comment.