forked from input-output-hk/haskell.nix
-
Notifications
You must be signed in to change notification settings - Fork 1
/
tullia.nix
45 lines (40 loc) · 1.1 KB
/
tullia.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
let
ciInputName = "GitHub event";
repository = "input-output-hk/haskell.nix";
in {
tasks.ci = {config, lib, ...}: {
preset = {
nix.enable = true;
github.ci = {
enable = config.actionRun.facts != {};
inherit repository;
revision = config.preset.github.lib.readRevision ciInputName null;
};
};
command.text = config.preset.github.status.lib.reportBulk {
bulk.text = ''
nix eval .#ciJobs --apply __attrNames --json |
nix-systems -i |
jq 'with_entries(select(.value))' # filter out systems that we cannot build for
'';
each.text = ''nix build -L .#ciJobs."$1".required'';
skippedDescription = lib.escapeShellArg "No nix builder available for this system";
};
memory = 1024 * 32;
nomad.resources.cpu = 10000;
};
actions."haskell.nix/ci" = {
task = "ci";
io = ''
let github = {
#input: "${ciInputName}"
#repo: "${repository}"
}
#lib.merge
#ios: [
#lib.io.github_push & github,
#lib.io.github_pr & github,
]
'';
};
}