Make GitHub Actions example more powerful

Show off the f-strings and loops.
This commit is contained in:
Ruud van Asseldonk 2023-09-20 22:47:00 +02:00
parent 33391d2ea1
commit 93cdd59a2c

View file

@ -21,11 +21,12 @@
install_url = "https://releases.nixos.org/nix/nix-2.11.0/install";
};
},
for attribute in ["rcl", "coverage"]:
{
name = "Build application";
name = f"Build {attribute}";
run =
"""
nix build --print-build-logs
f"""
nix build --print-build-logs .#{attribute}
echo "Build ok"
""";
},