Skip to content

Commit

Permalink
Show how to limit the systems for which matrix entries are generated
Browse files Browse the repository at this point in the history
  • Loading branch information
purcell authored Aug 16, 2023
1 parent bfeb681 commit 12e22d4
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
```

0 comments on commit 12e22d4

Please sign in to comment.