mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-02 17:15:01 +02:00
ci/check: init
Adds a "check" CI workflow to replace buildbot. Uses nix-community/nix-github-actions to generate a job matrix as a `githubActions.matrix` flake output. This allows more customisation than simply building _all_ `checks`.
This commit is contained in:
parent
2f610f9754
commit
f57d629bb0
5 changed files with 107 additions and 0 deletions
21
flake/dev/flake.lock
generated
21
flake/dev/flake.lock
generated
|
@ -135,6 +135,26 @@
|
|||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nix-github-actions": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
"dev-nixpkgs"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1737420293,
|
||||
"narHash": "sha256-F1G5ifvqTpJq7fdkT34e/Jy9VCyzd5XfJ9TO8fHhJWE=",
|
||||
"owner": "nix-community",
|
||||
"repo": "nix-github-actions",
|
||||
"rev": "f4158fa080ef4503c8f4c820967d946c2af31ec9",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nix-community",
|
||||
"repo": "nix-github-actions",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"root": {
|
||||
"inputs": {
|
||||
"dev-nixpkgs": "dev-nixpkgs",
|
||||
|
@ -143,6 +163,7 @@
|
|||
"git-hooks": "git-hooks",
|
||||
"home-manager": "home-manager",
|
||||
"nix-darwin": "nix-darwin",
|
||||
"nix-github-actions": "nix-github-actions",
|
||||
"treefmt-nix": "treefmt-nix"
|
||||
}
|
||||
},
|
||||
|
|
|
@ -32,6 +32,11 @@
|
|||
inputs.nixpkgs.follows = "dev-nixpkgs";
|
||||
};
|
||||
|
||||
nix-github-actions = {
|
||||
url = "github:nix-community/nix-github-actions";
|
||||
inputs.nixpkgs.follows = "dev-nixpkgs";
|
||||
};
|
||||
|
||||
treefmt-nix = {
|
||||
url = "github:numtide/treefmt-nix";
|
||||
inputs.nixpkgs.follows = "dev-nixpkgs";
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
{
|
||||
self,
|
||||
inputs,
|
||||
helpers,
|
||||
...
|
||||
}:
|
||||
|
@ -11,4 +12,9 @@
|
|||
inherit helpers self;
|
||||
};
|
||||
};
|
||||
|
||||
# Output a build matrix for CI
|
||||
flake.githubActions = inputs.nix-github-actions.lib.mkGithubMatrix {
|
||||
inherit (self) checks;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue