diff --git a/.gitignore b/.gitignore index fb0b6e93..53ce9fca 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,6 @@ .direnv # created when `just test ` is used -/result +/**/result # created when `just run ` is used /test/data diff --git a/vira.hs b/vira.hs new file mode 100644 index 00000000..1527c493 --- /dev/null +++ b/vira.hs @@ -0,0 +1,21 @@ +-- CI configuration +\ctx pipeline -> + let + isMaster = ctx.branch == "main" + in pipeline + { build.systems = + [ "x86_64-linux" + , "aarch64-darwin" + ] + , build.flakes = + [ "./example/simple" { overrideInputs = [("services-flake", ".")] } + , "./example/llm" { overrideInputs = [("services-flake", ".")] } + , "./example/share-services/pgweb" { overrideInputs = [("services-flake", "."), ("northwind", "path:./example/share-services/northwind")] } + , "./example/without-flake-parts" { overrideInputs = [("services-flake", ".")] } + , "./test" { overrideInputs = [("services-flake", ".")] } + , "./dev" { overrideInputs = [("services-flake", ".")] } + , "./doc" + ] + , signoff.enable = True + , cache.url = if isMaster then Just "https://cache.nixos.asia/oss" else Nothing + }