Enter Forgejo Actions with Nickel
Some checks failed
/ check-mastodon-garage (pull_request) Failing after 1m30s
/ check-pixelfed-garage (pull_request) Failing after 50m50s
/ nixosConfiguration-all (pull_request) Failing after 12s
/ nixosConfiguration-mastodon (pull_request) Failing after 11s
/ nixosConfiguration-peertube (pull_request) Failing after 1m24s
/ nixosConfiguration-pixelfed (pull_request) Failing after 1m22s
Some checks failed
/ check-mastodon-garage (pull_request) Failing after 1m30s
/ check-pixelfed-garage (pull_request) Failing after 50m50s
/ nixosConfiguration-all (pull_request) Failing after 12s
/ nixosConfiguration-mastodon (pull_request) Failing after 11s
/ nixosConfiguration-peertube (pull_request) Failing after 1m24s
/ nixosConfiguration-pixelfed (pull_request) Failing after 1m22s
This commit is contained in:
parent
7b36774b80
commit
ca40a3ed71
49
.forgejo/workflows/ci.ncl
Normal file
49
.forgejo/workflows/ci.ncl
Normal file
|
@ -0,0 +1,49 @@
|
||||||
|
{
|
||||||
|
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"]
|
||||||
|
)
|
||||||
|
]
|
||||||
|
),
|
||||||
|
}
|
41
.forgejo/workflows/ci.yaml
Normal file
41
.forgejo/workflows/ci.yaml
Normal file
|
@ -0,0 +1,41 @@
|
||||||
|
## This file was generated by Nickel. Edit `ci.ncl` instead, and export to YAML.
|
||||||
|
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
|
Reference in a new issue