From 2365afc0d51d71279b54ab702f8145f069664e2c Mon Sep 17 00:00:00 2001 From: Matt Sturgeon Date: Fri, 5 Sep 2025 16:24:29 +0100 Subject: [PATCH] ci: only build packages on x86_64-linux As a temporary solution, we only include the `packages` output in the `ci.buildbot` output on x86_64-linux. At some point, we should consider explicitly copying each package to `ci.buildbot`, and maybe omitting some. Some packages may be better off being built on GHA, such as the docs. --- flake/dev/package-tests.nix | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/flake/dev/package-tests.nix b/flake/dev/package-tests.nix index 0e6b05d8..4c6a3e16 100644 --- a/flake/dev/package-tests.nix +++ b/flake/dev/package-tests.nix @@ -1,12 +1,16 @@ +{ lib, ... }: { perSystem = - { config, ... }: + { config, system, ... }: { # Test that all packages build fine when running `nix flake check`. checks = config.packages; # Test that all packages build when running buildbot - # TODO: only test the docs on x86_64-linux - ci.buildbot = config.packages; + # FIXME: we want to build most platforms on all systems, + # but building the docs is often too expensive. + # For now, we restrict the whole packages output to one platform. + # TODO: move building the docs to GHA + ci.buildbot = lib.mkIf (system == "x86_64-linux") config.packages; }; }