2024-11-11 17:52:23 +01:00
|
|
|
{ lib }:
|
|
|
|
|
|
|
|
let
|
|
|
|
inherit (lib) attrNames genAttrs;
|
|
|
|
|
|
|
|
nodes = attrNames (builtins.readDir ../machines);
|
|
|
|
in
|
|
|
|
|
|
|
|
{
|
|
|
|
name = "Build all the nodes";
|
|
|
|
on = {
|
|
|
|
pull_request.branches = [ "main" ];
|
|
|
|
push.branches = [ "main" ];
|
|
|
|
};
|
|
|
|
|
|
|
|
jobs = genAttrs nodes (node: {
|
|
|
|
runs-on = "nix";
|
|
|
|
steps = [
|
2024-11-11 18:01:44 +01:00
|
|
|
{ uses = "actions/checkout@v3"; }
|
2024-11-11 17:52:23 +01:00
|
|
|
{
|
|
|
|
name = "Build and cache ${node}";
|
2024-11-14 22:18:40 +01:00
|
|
|
run = "nix-shell -A eval-nodes --run cache-node";
|
2024-11-11 17:52:23 +01:00
|
|
|
env = {
|
|
|
|
STORE_ENDPOINT = "https://tvix-store.dgnum.eu/infra-signing/";
|
|
|
|
STORE_USER = "admin";
|
|
|
|
STORE_PASSWORD = "\${{ secrets.STORE_PASSWORD }}";
|
|
|
|
BUILD_NODE = node;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
];
|
|
|
|
});
|
|
|
|
}
|