mirror of
https://github.com/ruuda/rcl.git
synced 2025-10-10 00:42:13 +00:00

GitHub Actions is one of those things that tends to have a lot of repetition, where RCL may come in handy.
35 lines
685 B
Text
35 lines
685 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";
|
|
};
|
|
},
|
|
{
|
|
name = "Build application";
|
|
run =
|
|
"""
|
|
nix build --print-build-logs
|
|
echo "Build ok"
|
|
""";
|
|
},
|
|
];
|
|
},
|
|
};
|
|
}
|