This repository has been archived on 2024-11-13. You can view files and clone it, but cannot push or open issues or pull requests.
simple-nixos-fediverse/.forgejo/workflows/ci.ncl

49 lines
1.3 KiB
Plaintext
Raw Normal View History

2024-09-20 12:21:26 +02:00
{
on = {
push.branches = ["main"],
pull_request.types = ["opened", "synchronize", "reopened"],
},
jobs =
std.record.from_array
(
std.array.flatten
[
(
std.array.map
(
fun c =>
{
field = "nixosConfiguration-%{c}",
value = {
runs-on = "native",
steps = [
{ uses = "actions/checkout@v4" },
{ run = "nix build .#nixosConfigurations.%{c}.config.system.build.toplevel" },
]
}
}
)
["all", "mastodon", "peertube", "pixelfed"]
),
(
std.array.map
(
fun c =>
{
field = "check-%{c}",
value = {
runs-on = "native",
steps = [
{ uses = "actions/checkout@v4" },
{ run = "nix build .#checks.x86_64-linux.%{c} -L" },
]
}
}
)
["mastodon-garage", "pixelfed-garage"]
)
]
),
}