mirror of
https://github.com/ruuda/rcl.git
synced 2025-10-07 15:40:49 +00:00

At first I thought, “but a single-element collection should always fit, right?” And sure it fits, but then I reformatted a larger experimental config I have, including some GitHub Actions, and it turns out that sometimes I prefer even single-element litst to be tall. Black is right about this. I should be less opinionated, leave it to the user.
38 lines
757 B
Text
38 lines
757 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"
|
|
""",
|
|
},
|
|
],
|
|
},
|
|
},
|
|
}
|