mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 08:35:43 +02:00
ci/check: move matrix output
This commit is contained in:
parent
f77ecb989a
commit
0f0dca464e
2 changed files with 40 additions and 37 deletions
5
.github/workflows/check.yml
vendored
5
.github/workflows/check.yml
vendored
|
@ -27,7 +27,7 @@ jobs:
|
||||||
id: set-matrix
|
id: set-matrix
|
||||||
run: |
|
run: |
|
||||||
set -Eeu
|
set -Eeu
|
||||||
matrix=$(nix eval --json .#githubActions.matrix)
|
matrix=$(nix eval --json .#githubActions.checksMatrix)
|
||||||
echo "matrix=$matrix" >> "$GITHUB_OUTPUT"
|
echo "matrix=$matrix" >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
build:
|
build:
|
||||||
|
@ -37,8 +37,7 @@ jobs:
|
||||||
- prepare
|
- prepare
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix: ${{ fromJSON(needs.prepare.outputs.matrix) }}
|
||||||
include: ${{ fromJSON(needs.prepare.outputs.matrix) }}
|
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
with:
|
with:
|
||||||
systemAsName: true
|
systemAsName: true
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
# Output a build matrix for CI
|
# Output a build matrix for CI
|
||||||
flake.githubActions.matrix =
|
flake.githubActions =
|
||||||
let
|
let
|
||||||
systemsByPrio = [
|
systemsByPrio = [
|
||||||
"x86_64-linux"
|
"x86_64-linux"
|
||||||
|
@ -41,8 +41,8 @@
|
||||||
) (throw "No supported system found!") systemsByPrio;
|
) (throw "No supported system found!") systemsByPrio;
|
||||||
in
|
in
|
||||||
toGithubBuild system;
|
toGithubBuild system;
|
||||||
in
|
|
||||||
lib.pipe self.checks [
|
checks = lib.pipe self.checks [
|
||||||
(lib.mapAttrsRecursiveCond (x: !lib.isDerivation x) (
|
(lib.mapAttrsRecursiveCond (x: !lib.isDerivation x) (
|
||||||
loc: _: {
|
loc: _: {
|
||||||
_type = "check";
|
_type = "check";
|
||||||
|
@ -75,4 +75,8 @@
|
||||||
}
|
}
|
||||||
))
|
))
|
||||||
];
|
];
|
||||||
|
in
|
||||||
|
{
|
||||||
|
checksMatrix.include = checks;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue