mirror of
https://github.com/ruuda/rcl.git
synced 2025-12-23 04:47:19 +00:00
I am still ambivalent about this. On the one hand I have a strong sense that "key = value;" is a statement that needs a terminator. On the other hand, it makes things more uniform to have only a single separator. I think I just need to get used to the comma, and then I will not mind so much. But let's see.
36 lines
746 B
Text
36 lines
746 B
Text
{
|
|
name = "Build",
|
|
|
|
on = {
|
|
push = { branches = ["master"] },
|
|
workflow_dispatch = {},
|
|
},
|
|
|
|
jobs = {
|
|
"Build": {
|
|
runs-on = "ubuntu-22.04",
|
|
steps = [
|
|
{
|
|
name = "Checkout",
|
|
uses = "actions/checkout@v3.5.3",
|
|
},
|
|
{
|
|
name = "Install Nix",
|
|
uses = "cachix/install-nix-action@v18",
|
|
with = {
|
|
install_url = "https://releases.nixos.org/nix/nix-2.11.0/install",
|
|
},
|
|
},
|
|
for attribute in ["rcl", "coverage"]:
|
|
{
|
|
name = f"Build {attribute}",
|
|
run =
|
|
f"""
|
|
nix build --print-build-logs .#{attribute}
|
|
echo "Build ok"
|
|
""",
|
|
},
|
|
],
|
|
},
|
|
},
|
|
}
|