only show checks for x86_64-linux
This commit is contained in:
parent
b996e80488
commit
7b7f36de55
2 changed files with 6 additions and 6 deletions
2
.github/workflows/build.yaml
vendored
2
.github/workflows/build.yaml
vendored
|
|
@ -6,7 +6,5 @@ jobs:
|
|||
with:
|
||||
nix_conf: |
|
||||
allow-import-from-derivation = true
|
||||
filter_builds: |
|
||||
'.top_attr == "checks" and .system == "x86_64-linux"'
|
||||
secrets:
|
||||
nixbuild_token: ${{ secrets.nixbuild_token }}
|
||||
|
|
|
|||
10
flake.nix
10
flake.nix
|
|
@ -78,12 +78,14 @@
|
|||
|
||||
checks =
|
||||
let
|
||||
inherit (pkgs.lib) foldl foldlAttrs mergeAttrs optionalAttrs;
|
||||
|
||||
importFiles = files:
|
||||
map (m: pkgs.callPackage m {}) files;
|
||||
|
||||
mergeTests = pkgs.lib.lists.foldl pkgs.lib.trivial.mergeAttrs {};
|
||||
mergeTests = foldl mergeAttrs {};
|
||||
|
||||
flattenAttrs = root: attrset: pkgs.lib.attrsets.foldlAttrs (acc: name: value: acc // {
|
||||
flattenAttrs = root: attrset: foldlAttrs (acc: name: value: acc // {
|
||||
"${root}_${name}" = value;
|
||||
}) {} attrset;
|
||||
|
||||
|
|
@ -95,7 +97,7 @@
|
|||
);
|
||||
|
||||
shblib = pkgs.callPackage ./lib {};
|
||||
in (rec {
|
||||
in (optionalAttrs (system == "x86_64-linux") ({
|
||||
modules = shblib.check {
|
||||
inherit pkgs;
|
||||
tests =
|
||||
|
|
@ -132,7 +134,7 @@
|
|||
// (vm_test "postgresql" ./test/blocks/postgresql.nix)
|
||||
// (vm_test "restic" ./test/blocks/restic.nix)
|
||||
// (vm_test "ssl" ./test/blocks/ssl.nix)
|
||||
);
|
||||
));
|
||||
}
|
||||
) // {
|
||||
herculesCI.ciSystems = [ "x86_64-linux" ];
|
||||
|
|
|
|||
Loading…
Reference in a new issue