Skip to content

Commit

Permalink
Build monad-schedule without parallelism in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ners committed Nov 16, 2024
1 parent 2a4f7be commit c3c0697
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 7 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,10 @@ jobs:
- name: Flake check
run: nix flake check
- name: Build all packages
run: nix build --accept-flake-config
run: |
# Pre-build monad-schedule without parallelism to avoid timing issues under load
nix build --accept-flake-config --max-jobs 1 .#monad-schedule-lib
nix build --accept-flake-config
- name: Run tests
run: |
nix develop --accept-flake-config -c cabal update
Expand Down
6 changes: 3 additions & 3 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 9 additions & 3 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,6 @@
}
{ };
})
(hfinal: hprev: lib.optionalAttrs prev.stdenv.isDarwin {
monad-schedule = dontCheck hprev.monad-schedule;
})
(hfinal: hprev: lib.optionalAttrs (lib.versionOlder hprev.ghc.version "9.4") {
time-domain = doJailbreak hprev.time-domain;
})
Expand Down Expand Up @@ -142,6 +139,14 @@
(prev.linkFarm "docsAndSdist" { docs = final.rhine-docs; sdist = rhine-sdist; })
];
};

# All monad-schedule libraries
monad-schedule-lib = prev.buildEnv
{
name = "monad-schedule-lib";
paths = map (hp: hp.monad-schedule) (attrValues hps);
pathsToLink = [ "/lib" ];
};
};

overlay = lib.composeManyExtensions
Expand All @@ -165,6 +170,7 @@
# Usage: nix build
packages = forAllPlatforms (system: pkgs: {
default = pkgs.rhine-all;
monad-schedule = pkgs.monad-schedule-lib;
});

# We re-export the entire nixpkgs package set with our overlay.
Expand Down

0 comments on commit c3c0697

Please sign in to comment.