nix-community.nixvim/.github/workflows/check.yml
2025-05-27 15:45:58 +01:00

44 lines
986 B
YAML

name: Check
on:
workflow_dispatch: # can be triggered manually
pull_request:
types:
- opened
- reopened
- synchronize
push:
branches-ignore:
- update/*
paths-ignore:
- "LICENSE"
jobs:
prepare:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install nix
uses: cachix/install-nix-action@v31
- name: Generate Nix Matrix
id: set-matrix
run: |
set -Eeu
matrix=$(nix eval --json .#githubActions.checksMatrix)
echo "matrix=$matrix" >> "$GITHUB_OUTPUT"
build:
name: ${{ matrix.name }}
uses: ./.github/workflows/build.yml
needs:
- prepare
strategy:
fail-fast: false
matrix: ${{ fromJSON(needs.prepare.outputs.matrix) }}
secrets: inherit
with:
systemAsName: true
builds: ${{ toJSON(matrix.builds) }}