Skip to content

Commit

Permalink
ci: Do closure size check in omnix
Browse files Browse the repository at this point in the history
  • Loading branch information
srid committed Aug 25, 2024
1 parent b9a2fc7 commit a864dc8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,8 @@ jobs:
- name: Build Nix
run: |
om ci --extra-access-tokens "github.com=${{ secrets.GITHUB_TOKEN }}" run --systems "${{ matrix.system }}"
- name: Check closure size
run: |
nix run .#check-closure-size
flake-parts-docs:
if: false # Currently fails in CI
if: false # Currently fails in CI
runs-on: x86_64-linux
steps:
- name: Docs for flake.parts
Expand Down
15 changes: 13 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
tagtree.jailbreak = true;
tailwind.broken = false;
tailwind.jailbreak = true;
unionmount.check = !pkgs.stdenv.isDarwin; # garnix: Slow M1 builder
unionmount.check = !pkgs.stdenv.isDarwin; # garnix: Slow M1 builder
emanote = { name, pkgs, self, super, ... }: {
check = false;
extraBuildDepends = [ pkgs.stork ];
Expand All @@ -108,7 +108,7 @@
longDescription = ''
Emanote is a tool for generating a structured view of your
plain-text notes on the web, as a statically generated
website as well as a local live server.
website as well as a local live server.
For editing notes, you can use any text editor of your
choice including the likes of Obsidian.
Expand Down Expand Up @@ -192,6 +192,17 @@
description = "A simple flake.nix template for emanote notebooks";
path = builtins.path { path = inputs.emanote-template; filter = path: _: baseNameOf path == "flake.nix"; };
};
om.ci.default = {
emanote = {
dir = ".";
steps.custom = {
closure-size = {
type = "app";
name = "check-closure-size";
};
};
};
};
};
};
}

0 comments on commit a864dc8

Please sign in to comment.