Skip to content

.github/workflows: per GHC step, gc after #13

.github/workflows: per GHC step, gc after

.github/workflows: per GHC step, gc after #13

Workflow file for this run

name: "nixpkgs CI"
on:
workflow_dispatch:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
get-ghc-versions:
name: Determine GHC versions to test
runs-on: ubuntu-latest
outputs:
versions: ${{ steps.get-ghc-versions-step.outputs.versions }}
steps:
- uses: actions/[email protected]
- uses: cachix/install-nix-action@v30
with:
nix_path: nixpkgs=channel:nixos-unstable
- name: Get GHC Versions from ci.nix
id: get-ghc-versions-step
run: |
echo -n "versions=" >> "$GITHUB_OUTPUT"
nix-instantiate --eval --strict --json -E 'builtins.attrNames (import ./ci.nix { })' >> "$GITHUB_OUTPUT"
nix-build:

Check failure on line 28 in .github/workflows/nixpkgs-ci.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/nixpkgs-ci.yml

Invalid workflow file

You have an error in your yaml syntax on line 28
runs-on: ubuntu-latest
needs:
- get-ghc-versions
strategy:
matrix:
version: ${{ fromJSON(needs.get-ghc-versions.outputs.versions) }}
- uses: actions/[email protected]
- uses: cachix/install-nix-action@v30
with:
nix_path: nixpkgs=channel:nixos-unstable
- name: nix-build ci.nix -A ${{ matrix.version }}
run: |
nix-build -A ${{ matrix.version }}
nix-store --gc