mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
ci: matrix.include
This commit is contained in:
parent
b147e6a6af
commit
2ce3bdd6f3
2 changed files with 6 additions and 7 deletions
3
.github/workflows/build.yml
vendored
3
.github/workflows/build.yml
vendored
|
@ -22,7 +22,8 @@ jobs:
|
|||
- ${{ matrix.runner }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix: ${{ fromJSON(inputs.builds) }}
|
||||
matrix:
|
||||
include: ${{ fromJSON(inputs.builds) }}
|
||||
timeout-minutes: ${{ inputs.timeout }}
|
||||
steps:
|
||||
- name: Free disk space
|
||||
|
|
10
.github/workflows/check.yml
vendored
10
.github/workflows/check.yml
vendored
|
@ -27,10 +27,7 @@ jobs:
|
|||
id: set-matrix
|
||||
run: |
|
||||
set -Eeu
|
||||
matrix=$(
|
||||
nix eval --json .#githubActions.matrix \
|
||||
--apply 'map (m: m // { builds = builtins.toJSON m.builds; })'
|
||||
)
|
||||
matrix=$(nix eval --json .#githubActions.matrix)
|
||||
echo "matrix=$matrix" >> "$GITHUB_OUTPUT"
|
||||
|
||||
build:
|
||||
|
@ -39,8 +36,9 @@ jobs:
|
|||
- prepare
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix: ${{ fromJSON(needs.prepare.outputs.matrix) }}
|
||||
matrix:
|
||||
include: ${{ fromJSON(needs.prepare.outputs.matrix) }}
|
||||
secrets: inherit
|
||||
with:
|
||||
name: ${{ matrix.name }}
|
||||
builds: ${{ matrix.builds }}
|
||||
builds: ${{ toJSON(matrix.builds) }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue