mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-04 18:15:08 +02:00
44 lines
986 B
YAML
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) }}
|