Skip to content

flake.nix: build all packages though a single evaluation #2

flake.nix: build all packages though a single evaluation

flake.nix: build all packages though a single evaluation #2

Workflow file for this run

name: build and cache all flake outputs

Check failure on line 1 in .github/workflows/nix_build.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/nix_build.yml

Invalid workflow file

(Line: 12, Col: 3): The workflow must contain at least one job with no dependencies.
on:
workflow_call:
secrets:
GITHUB_TOKEN_IN:
required: true
CACHIX_AUTH_TOKEN:
required: true
jobs:
checks:
runs-on: ${{ matrix.runner }}
needs: nix-build
permissions:
contents: read
strategy:
matrix:
include:
- runner: yet-to-be-set-up-nix-build-host
system: x86_64-linux
steps:
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
with:
persist-credentials: false
- uses: ./.github/actions/setup_nix
with:
githubToken: ${{ secrets.GITHUB_TOKEN_IN || secrets.GITHUB_TOKEN }}
cachixToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
- name: pre-build all flake outputs
run: |
nix build .#matrix.${{ matrix.system }}