From 0b5f308386c329b264518bff4226d218356d9adf Mon Sep 17 00:00:00 2001 From: Daniel Hines Date: Sat, 10 Dec 2022 22:50:21 -0500 Subject: [PATCH] ci: build all packages --- .github/workflows/build.yml | 2 ++ flake.nix | 1 + nix/deku-p/default.nix | 6 +++++- 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 295e94fe4..2f5842cdc 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -32,6 +32,8 @@ jobs: done - name: Check formatting run: nix fmt -- --fail-on-change + - name: Check all packages + run: nix flake -L check - name: Build default run: nix --log-format raw -L build '.#deku' - name: Build static diff --git a/flake.nix b/flake.nix index 14413bc95..60226552e 100644 --- a/flake.nix +++ b/flake.nix @@ -84,6 +84,7 @@ tuna = self'.packages.tuna; deploy-rs = deploy-rs.packages.${system}.default; }; + checks = self.outputs.packages.${system}; formatter = treefmt.legacyPackages.${system}.withConfig { settings = with pkgs; { excludes = [ diff --git a/nix/deku-p/default.nix b/nix/deku-p/default.nix index d273db191..440015439 100644 --- a/nix/deku-p/default.nix +++ b/nix/deku-p/default.nix @@ -39,7 +39,11 @@ static = true; }; - ligo = inputs.ligo.packages.${system}.ligoLight; + ligo = + if system == "x86_64-linux" + then inputs.ligo.packages.${system}.ligoLight + # TODO: fix ligo for other systems + else pkgs.hello; docker = pkgs.callPackage ./docker.nix {inherit deku ligo;}; in {