forked from DGNum/infrastructure
36 lines
788 B
Nix
36 lines
788 B
Nix
# SPDX-FileCopyrightText: 2024 Tom Hubrecht <tom.hubrecht@dgnum.eu>
|
|
#
|
|
# SPDX-License-Identifier: EUPL-1.2
|
|
|
|
{ lib }:
|
|
|
|
let
|
|
inherit (lib) attrNames genAttrs;
|
|
|
|
nodes = attrNames (import ../meta/nodes);
|
|
in
|
|
|
|
{
|
|
name = "Build all the nodes";
|
|
on = {
|
|
pull_request.branches = [ "main" ];
|
|
push.branches = [ "main" ];
|
|
};
|
|
|
|
jobs = genAttrs nodes (node: {
|
|
runs-on = "nix";
|
|
steps = [
|
|
{ uses = "actions/checkout@v3"; }
|
|
{
|
|
name = "Build and cache ${node}";
|
|
run = "nix-shell -A eval-nodes --run cache-node";
|
|
env = {
|
|
STORE_ENDPOINT = "https://tvix-store.dgnum.eu/infra-signing/";
|
|
STORE_USER = "admin";
|
|
STORE_PASSWORD = "\${{ secrets.STORE_PASSWORD }}";
|
|
BUILD_NODE = node;
|
|
};
|
|
}
|
|
];
|
|
});
|
|
}
|