Skip to content

Commit

Permalink
ci(cachix): push only resulting packages without vendored deps
Browse files Browse the repository at this point in the history
Free Cachix plan only has 5GiB of storage and vendored deps are more
than 1 GiB per platform. They are easier to build compared to
the server binaries which can take several hours to build,
so they can be removed.
  • Loading branch information
thecaralice committed Sep 30, 2024
1 parent 3874a11 commit 334e3e4
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,21 @@
flake.lib = import ./lib { inherit nixpkgs; };

perSystem =
{ pkgs, ... }:
{
pkgs,
lib,
self',
...
}:
let
craneLib = crane.mkLib pkgs;
in
{
packages.server = pkgs.callPackage ./packages/server { inherit craneLib; };
packages.frontends = pkgs.callPackage ./packages/frontends { };
githubActions = {
cachix.pathsToPush = lib.attrValues self'.packages;
};
};
githubActions = {
cachix.enable = true;
Expand Down

0 comments on commit 334e3e4

Please sign in to comment.