From 12e22d4e749e4225f60101dbb95a305f37022991 Mon Sep 17 00:00:00 2001 From: Steve Purcell Date: Wed, 16 Aug 2023 18:44:06 +1200 Subject: [PATCH] Show how to limit the systems for which matrix entries are generated --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index b2a38e46..54446e95 100644 --- a/README.md +++ b/README.md @@ -60,3 +60,14 @@ $ nix run github:nix-community/nix-github-actions }; } ``` + +#### When your Flake supports systems that GitHub Actions does not + +If your Flake contains checks for platforms unsupported by Actions, e.g. `aarch64-darwin`, +you can restrict the systems for which the matrix will be generated: + +``` nix +githubActions = nix-github-actions.lib.mkGithubMatrix { + checks = nixpkgs.lib.getAttrs [ "x86_64-linux" "x86_64-darwin" ] self.checks; +}; +```