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:
|
with:
|
||||||
attrs: ci.run.bootstrap
|
attrs: ci.run.bootstrap
|
||||||
quiet: false
|
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
|
- id: ci-dirty
|
||||||
name: nix test dirty
|
name: nix test dirty
|
||||||
uses: arcnmx/ci/actions/nix/run@master
|
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";
|
name = "nixfiles";
|
||||||
ci.gh-actions.enable = true;
|
ci.gh-actions.enable = true;
|
||||||
ci.gh-actions.export = 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: {
|
in mapAttrs' (k: nameValuePair "host-${k}") (genAttrs hostnames (host: {
|
||||||
name = "build host/${host}";
|
inputs = with channels.cipkgs; ci.command {
|
||||||
run = "nix build -Lf . hosts.${host}.config.system.build.toplevel --show-trace";
|
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;
|
ci.gh-actions.checkoutOptions.submodules = false;
|
||||||
cache.cachix.arc = {
|
cache.cachix.arc = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue