Skip to content

Commit 5c18ef5

Browse files
authored
feat: exclude nixos-test builds on x86_64-linux from GitHub matrix (#1970)
We want to build nixos-test only on aarch64-linux. We still want to enable developers to run nixos-test builds locally on x86_64-linux, but we don't want these builds to be triggered automatically in CI.
1 parent 7d4bbf0 commit 5c18ef5

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

nix/checks.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@
396396
pg_regress
397397
;
398398
}
399-
// pkgs.lib.optionalAttrs (system == "aarch64-linux") (
399+
// pkgs.lib.optionalAttrs (pkgs.stdenv.isLinux) (
400400
{
401401
inherit (self'.packages)
402402
postgresql_15_debug

nix/packages/github-matrix/github_matrix.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,11 @@ def parse_nix_eval_line(
148148
return Err({"attr": data["attr"], "error": error_msg})
149149
if data["drvPath"] in drv_paths:
150150
return Ok(None)
151+
if (
152+
"nixos-test" in data.get("requiredSystemFeatures", [])
153+
and data["system"] == "x86_64-linux"
154+
):
155+
return Ok(None)
151156
drv_paths.add(data["drvPath"])
152157
return Ok(data)
153158
except json.JSONDecodeError as e:

0 commit comments

Comments
 (0)