Enter Nickel
Some checks failed
/ nixosConfiguration-all (push) Has been cancelled
/ nixosConfiguration-mastodon (push) Has been cancelled
/ nixosConfiguration-peertube (push) Has been cancelled
/ nixosConfiguration-pixelfed (push) Has been cancelled
/ check-pixelfed-garage (push) Has been cancelled
/ check-mastodon-garage (push) Has been cancelled

This commit is contained in:
Nicolas Jeannerod 2024-09-30 11:39:40 +02:00
parent 1f30db6cb9
commit 2129667f18
Signed by: Niols
GPG key ID: 35DB9EC8886E1CB8
3 changed files with 89 additions and 47 deletions

48
.forgejo/workflows/ci.ncl Normal file
View file

@ -0,0 +1,48 @@
{
on = {
push.branches = ["main", "forgejo-ci-test"],
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"]
)
]
),
}

View file

@ -0,0 +1,41 @@
jobs:
check-mastodon-garage:
runs-on: native
steps:
- uses: actions/checkout@v4
- run: nix build .#checks.x86_64-linux.mastodon-garage -L
check-pixelfed-garage:
runs-on: native
steps:
- uses: actions/checkout@v4
- run: nix build .#checks.x86_64-linux.pixelfed-garage -L
nixosConfiguration-all:
runs-on: native
steps:
- uses: actions/checkout@v4
- run: nix build .#nixosConfigurations.all.config.system.build.toplevel
nixosConfiguration-mastodon:
runs-on: native
steps:
- uses: actions/checkout@v4
- run: nix build .#nixosConfigurations.mastodon.config.system.build.toplevel
nixosConfiguration-peertube:
runs-on: native
steps:
- uses: actions/checkout@v4
- run: nix build .#nixosConfigurations.peertube.config.system.build.toplevel
nixosConfiguration-pixelfed:
runs-on: native
steps:
- uses: actions/checkout@v4
- run: nix build .#nixosConfigurations.pixelfed.config.system.build.toplevel
on:
pull_request:
types:
- opened
- synchronize
- reopened
push:
branches:
- main
- forgejo-ci-test

View file

@ -1,47 +0,0 @@
on:
push:
branches: [main, forgejo-ci-test]
pull_request:
types: [opened, synchronize, reopened]
jobs:
## NixOS configurations
nixosConfiguration-all:
runs-on: native
steps:
- uses: actions/checkout@v4
- run: nix build .#nixosConfigurations.all.config.system.build.toplevel
nixosConfiguration-mastodon:
runs-on: native
steps:
- uses: actions/checkout@v4
- run: nix build .#nixosConfigurations.mastodon.config.system.build.toplevel
nixosConfiguration-peertube:
runs-on: native
steps:
- uses: actions/checkout@v4
- run: nix build .#nixosConfigurations.peertube.config.system.build.toplevel
nixosConfiguration-pixelfed:
runs-on: native
steps:
- uses: actions/checkout@v4
- run: nix build .#nixosConfigurations.pixelfed.config.system.build.toplevel
## Checks
check-other-pixelfed-garage-fixme:
runs-on: native
steps:
- uses: actions/checkout@v4
- run: nix build .#checks.x86_64-linux.pixelfed-garage -L
check-pixelfed-garage:
runs-on: native
steps:
- uses: actions/checkout@v4
- run: nix build .#checks.x86_64-linux.pixelfed-garage -L