forked from DGNum/liminix
fix CI flashimage error
This commit is contained in:
parent
57eb55de58
commit
381730d081
2 changed files with 15 additions and 4 deletions
12
ci.nix
12
ci.nix
|
@ -8,17 +8,21 @@ let
|
||||||
pkgs = (import nixpkgs {});
|
pkgs = (import nixpkgs {});
|
||||||
borderVmConf = ./bordervm.conf-example.nix;
|
borderVmConf = ./bordervm.conf-example.nix;
|
||||||
inherit (pkgs.lib.attrsets) genAttrs;
|
inherit (pkgs.lib.attrsets) genAttrs;
|
||||||
devices = [ "qemu" "gl-ar750" "gl-mt300n-v2" "gl-mt300a" ];
|
devices = {
|
||||||
|
virt = [ "qemu" ];
|
||||||
|
hw = [ "gl-ar750" "gl-mt300n-v2" "gl-mt300a" ];
|
||||||
|
};
|
||||||
vanilla = ./vanilla-configuration.nix;
|
vanilla = ./vanilla-configuration.nix;
|
||||||
for-device = name:
|
for-device = cfg: name:
|
||||||
(import liminix {
|
(import liminix {
|
||||||
inherit nixpkgs borderVmConf;
|
inherit nixpkgs borderVmConf;
|
||||||
device = import (liminix + "/devices/${name}");
|
device = import (liminix + "/devices/${name}");
|
||||||
liminix-config = vanilla;
|
liminix-config = cfg;
|
||||||
}).outputs.default;
|
}).outputs.default;
|
||||||
tests = import ./tests/ci.nix;
|
tests = import ./tests/ci.nix;
|
||||||
jobs =
|
jobs =
|
||||||
(genAttrs devices (name: for-device name)) //
|
(genAttrs devices.hw (name: for-device ./vanilla-configuration-hw.nix name)) //
|
||||||
|
(genAttrs devices.virt (name: for-device vanilla name)) //
|
||||||
tests //
|
tests //
|
||||||
{
|
{
|
||||||
buildEnv = (import liminix {
|
buildEnv = (import liminix {
|
||||||
|
|
7
vanilla-configuration-hw.nix
Normal file
7
vanilla-configuration-hw.nix
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./vanilla-configuration.nix
|
||||||
|
./modules/standard.nix
|
||||||
|
];
|
||||||
|
}
|
Loading…
Reference in a new issue