Skip to content

Commit f0bfe70

Browse files
committed
WIP: add effect
1 parent 6895bd6 commit f0bfe70

File tree

2 files changed

+217
-11
lines changed

2 files changed

+217
-11
lines changed

flake.lock

Lines changed: 199 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,22 @@
77
treefmt-nix.url = "github:Platonic-Systems/treefmt-nix/flake-module"; # https://github.com/numtide/treefmt-nix/pull/14
88
flake-root.url = "github:srid/flake-root";
99
mission-control.url = "github:Platonic-Systems/mission-control";
10+
11+
# CI
12+
hercules-ci-effects.url = "github:hercules-ci/hercules-ci-effects";
1013
};
1114

1215
outputs = inputs@{ self, nixpkgs, flake-parts, ... }:
13-
flake-parts.lib.mkFlake { inherit inputs; } {
16+
flake-parts.lib.mkFlake { inherit inputs; } ({ withSystem, ... }: {
1417
systems = nixpkgs.lib.systems.flakeExposed;
1518
imports = [
1619
inputs.haskell-flake.flakeModule
1720
inputs.treefmt-nix.flakeModule
1821
inputs.flake-root.flakeModule
1922
inputs.mission-control.flakeModule
23+
24+
# CI
25+
inputs.hercules-ci-effects.flakeModule
2026
];
2127
perSystem = { self', lib, config, pkgs, ... }: {
2228
# The "main" project. You can have multiple projects, but this template
@@ -93,6 +99,15 @@
9399

94100
# checks.hlsCheck = config.haskellProjects.main.hlsCheck.drv;
95101
};
96-
flake.herculesCI.ciSystems = [ "x86_64-linux" "aarch64-darwin" ];
97-
};
102+
103+
# CI configuration
104+
flake = {
105+
herculesCI.ciSystems = [ "x86_64-linux" "aarch64-darwin" ];
106+
effects = { branch, ... }: withSystem "x86_64-linux" (
107+
{ config, effectgs, pkgs, ... }: {
108+
hlsCheck = config.haskellProjects.main.hlsCheck.drv;
109+
}
110+
);
111+
};
112+
});
98113
}

0 commit comments

Comments
 (0)