Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.direnv
# created when `just test <service>` is used
/result
/**/result
# created when `just run <service>` is used
/test/data

Expand Down
21 changes: 21 additions & 0 deletions vira.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
-- CI configuration <https://vira.nixos.asia/>
\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
}