infrastructure/workflows/eval-shell.nix
sinavir 8a958087f7 feat(workflows): Move workflows to dedicated runners
This also removes storage01 as a builder
2025-04-28 12:42:51 +02:00

34 lines
807 B
Nix

# SPDX-FileCopyrightText: 2024 Tom Hubrecht <tom.hubrecht@dgnum.eu>
#
# SPDX-License-Identifier: EUPL-1.2
{ nix-actions, ... }:
{
name = "Build the shell";
on = {
pull_request.branches = [ "main" ];
push.branches = [ "main" ];
};
jobs = {
build-shell = {
runs-on = "nix-infra";
steps = [
{ uses = "actions/checkout@v3"; }
{
name = "Build and cache shell";
run = nix-actions.lib.nix-shell {
script = "nix-build-and-cache -A devShell";
shell = "eval-shell";
};
env = {
STORE_ENDPOINT = "https://snix-store.dgnum.eu/infra.signing/";
STORE_USER = "admin";
STORE_PASSWORD = nix-actions.lib.secret "STORE_PASSWORD";
};
}
];
};
};
}