Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
stdize cicero actions and tullia tasks
run bitte-tests without cloning the git repo
- Loading branch information
Showing
4 changed files
with
53 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
{ | ||
cell, | ||
inputs, | ||
}: let | ||
common = { | ||
config, | ||
lib, | ||
... | ||
}: { | ||
preset = { | ||
nix.enable = true; | ||
github-ci = __mapAttrs (_: lib.mkDefault) { | ||
enable = config.action.facts != {}; | ||
repo = "input-output-hk/bitte"; | ||
sha = config.preset.github-ci.lib.getRevision "GitHub event" "HEAD"; | ||
clone = false; | ||
}; | ||
}; | ||
}; | ||
in { | ||
build = { | ||
config, | ||
lib, | ||
... | ||
}: { | ||
imports = [common]; | ||
|
||
command.text = let | ||
flakeUrl = lib.escapeShellArg ( | ||
with config.preset.github-ci; | ||
if enable | ||
then "github:${repo}/${sha}" | ||
else "." | ||
); | ||
in "nix flake check ${flakeUrl} --allow-import-from-derivation"; | ||
|
||
memory = 1024 * 12; | ||
nomad.resources.cpu = 10000; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
{ | ||
cell, | ||
inputs, | ||
}: { | ||
"bitte/ci-push" = { | ||
task = "build"; | ||
io = '' | ||
|
This file was deleted.
Oops, something went wrong.