2024-12-12 14:41:43 +01:00
|
|
|
# SPDX-FileCopyrightText: 2024 Tom Hubrecht <tom.hubrecht@dgnum.eu>
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: EUPL-1.2
|
|
|
|
|
2024-11-11 17:52:23 +01:00
|
|
|
{ lib }:
|
|
|
|
|
|
|
|
let
|
|
|
|
inherit (lib) attrNames genAttrs;
|
|
|
|
|
2024-12-16 09:34:26 +01:00
|
|
|
nodes = attrNames (import ../meta/nodes);
|
2024-11-11 17:52:23 +01:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
];
|
|
|
|
});
|
|
|
|
}
|