Skip to content

Try adding a CI job matrix #25

Try adding a CI job matrix

Try adding a CI job matrix #25

Workflow file for this run

on:
pull_request:
workflow_call:
jobs:
matrix:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
- id: set-matrix
name: Generate Nix Matrix
run: |
set -Eeu
matrix="$(nix eval --json '.#githubActions.matrix')"
echo "matrix=$matrix" >> "$GITHUB_OUTPUT"
build:
name: ${{ matrix.name }} (${{ matrix.system }})
needs: matrix
runs-on: ${{ matrix.os }}
strategy:
matrix: ${{fromJSON(needs.matrix.outputs.matrix)}}
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- run: nix build -L '.#${{ matrix.attr }}'