mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-03-31 00:00:03 +03:00
Not sure about this but it might make it easier to tell what the issue is when the nix CI is failing. Signed-off-by: Thomas Mühlbacher <tmuehlbacher@posteo.net>
32 lines
793 B
YAML
32 lines
793 B
YAML
name: Nix Flake actions
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
|
|
jobs:
|
|
nix-matrix:
|
|
runs-on: ubuntu-latest
|
|
outputs:
|
|
matrix: ${{ steps.set-matrix.outputs.matrix }}
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: cachix/install-nix-action@v30
|
|
- id: set-matrix
|
|
name: Generate Nix Matrix
|
|
run: |
|
|
set -Eeu
|
|
matrix="$(nix eval --json '.#githubActions.matrix')"
|
|
echo "matrix=$matrix" >> "$GITHUB_OUTPUT"
|
|
|
|
nix-build:
|
|
name: ${{ matrix.name }} (${{ matrix.system }})
|
|
needs: nix-matrix
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix: ${{fromJSON(needs.nix-matrix.outputs.matrix)}}
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: cachix/install-nix-action@v30
|
|
- run: nix build -L '.#${{ matrix.attr }}'
|