only show checks for x86_64-linux

This commit is contained in:
ibizaman 2024-10-24 14:11:16 +02:00
parent b996e80488
commit 7b7f36de55
2 changed files with 6 additions and 6 deletions

View file

@ -6,7 +6,5 @@ jobs:
with: with:
nix_conf: | nix_conf: |
allow-import-from-derivation = true allow-import-from-derivation = true
filter_builds: |
'.top_attr == "checks" and .system == "x86_64-linux"'
secrets: secrets:
nixbuild_token: ${{ secrets.nixbuild_token }} nixbuild_token: ${{ secrets.nixbuild_token }}

View file

@ -78,12 +78,14 @@
checks = checks =
let let
inherit (pkgs.lib) foldl foldlAttrs mergeAttrs optionalAttrs;
importFiles = files: importFiles = files:
map (m: pkgs.callPackage m {}) 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; "${root}_${name}" = value;
}) {} attrset; }) {} attrset;
@ -95,7 +97,7 @@
); );
shblib = pkgs.callPackage ./lib {}; shblib = pkgs.callPackage ./lib {};
in (rec { in (optionalAttrs (system == "x86_64-linux") ({
modules = shblib.check { modules = shblib.check {
inherit pkgs; inherit pkgs;
tests = tests =
@ -132,7 +134,7 @@
// (vm_test "postgresql" ./test/blocks/postgresql.nix) // (vm_test "postgresql" ./test/blocks/postgresql.nix)
// (vm_test "restic" ./test/blocks/restic.nix) // (vm_test "restic" ./test/blocks/restic.nix)
// (vm_test "ssl" ./test/blocks/ssl.nix) // (vm_test "ssl" ./test/blocks/ssl.nix)
); ));
} }
) // { ) // {
herculesCI.ciSystems = [ "x86_64-linux" ]; herculesCI.ciSystems = [ "x86_64-linux" ];