supabase-postgres.git / summary / log / commit / refs
commit 5c18ef54a9067c8f32af2a61e16ae05ee5aee119
Author: Jean-François Roche <jfroche@pyxel.be>
Commit: GitHub <noreply@github.com>
Date: Tue Dec 09 23:46:01 2025 +0000
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.
nix/checks.nix | 2 +-
nix/packages/github-matrix/github_matrix.py | 5 +++++
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/nix/checks.nix b/nix/checks.nix
index 81e0b411..948d56ac 100644
--- a/nix/checks.nix
+++ b/nix/checks.nix
@@ -396,7 +396,7 @@
pg_regress
;
}
- // pkgs.lib.optionalAttrs (system == "aarch64-linux") (
+ // pkgs.lib.optionalAttrs (pkgs.stdenv.isLinux) (
{
inherit (self'.packages)
postgresql_15_debug
diff --git a/nix/packages/github-matrix/github_matrix.py b/nix/packages/github-matrix/github_matrix.py
index 0108d5cb..81385c21 100755
--- a/nix/packages/github-matrix/github_matrix.py
+++ b/nix/packages/github-matrix/github_matrix.py
@@ -148,6 +148,11 @@ def parse_nix_eval_line(
return Err({"attr": data["attr"], "error": error_msg})
if data["drvPath"] in drv_paths:
return Ok(None)
+ if (
+ "nixos-test" in data.get("requiredSystemFeatures", [])
+ and data["system"] == "x86_64-linux"
+ ):
+ return Ok(None)
drv_paths.add(data["drvPath"])
return Ok(data)
except json.JSONDecodeError as e:
[parent: 7d4bbf08f262]