mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
ci: moved to tasks
This commit is contained in:
parent
f85f0e8f24
commit
3a5997cac0
2 changed files with 15 additions and 15 deletions
9
.github/workflows/nixfiles.yml
vendored
9
.github/workflows/nixfiles.yml
vendored
|
|
@ -21,15 +21,6 @@ jobs:
|
|||
with:
|
||||
attrs: ci.run.bootstrap
|
||||
quiet: false
|
||||
- id: host-athame
|
||||
name: build host/athame
|
||||
run: nix build -Lf . hosts.athame.config.system.build.toplevel --show-trace
|
||||
- id: host-samhain
|
||||
name: build host/samhain
|
||||
run: nix build -Lf . hosts.samhain.config.system.build.toplevel --show-trace
|
||||
- id: host-yule
|
||||
name: build host/yule
|
||||
run: nix build -Lf . hosts.yule.config.system.build.toplevel --show-trace
|
||||
- id: ci-dirty
|
||||
name: nix test dirty
|
||||
uses: arcnmx/ci/actions/nix/run@master
|
||||
|
|
|
|||
21
ci.nix
21
ci.nix
|
|
@ -1,13 +1,22 @@
|
|||
{ lib, ... }: with lib; {
|
||||
{ lib, channels, ... }: with lib; {
|
||||
name = "nixfiles";
|
||||
ci.gh-actions.enable = true;
|
||||
ci.gh-actions.export = true;
|
||||
gh-actions.jobs.ci.step = let
|
||||
hostnames = [ "samhain" "yule" "athame"];
|
||||
|
||||
tasks = let hostnames = [ "samhain" "yule" "athame" ];
|
||||
in mapAttrs' (k: nameValuePair "host-${k}") (genAttrs hostnames (host: {
|
||||
name = "build host/${host}";
|
||||
run = "nix build -Lf . hosts.${host}.config.system.build.toplevel --show-trace";
|
||||
}));
|
||||
inputs = with channels.cipkgs; ci.command {
|
||||
name = "build-${host}";
|
||||
displayName = "build hosts/${host}";
|
||||
nativeBuildInputs = [ nix ];
|
||||
command = ''
|
||||
nix build -Lf . hosts.${host}.config.system.build.toplevel --show-trace --no-link
|
||||
nix-collect-garbage
|
||||
'';
|
||||
impure = true;
|
||||
};
|
||||
}));
|
||||
|
||||
ci.gh-actions.checkoutOptions.submodules = false;
|
||||
cache.cachix.arc = {
|
||||
enable = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue