Skip to content

gha: attempt to minimize CI time #34

gha: attempt to minimize CI time

gha: attempt to minimize CI time #34

Workflow file for this run

name: "Build closures with Colmena"
on:
pull_request:
push:
jobs:
generate_matrix:
name: "Generate hive list"
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.matrix.outputs.matrix }}
steps:
- uses: DeterminateSystems/nix-installer-action@v4
- uses: DeterminateSystems/magic-nix-cache-action@main
- uses: actions/checkout@v4
- id: matrix
name: "Run nix eval to generate node list"
run: |
JSON=$(nix eval .#colmena --apply 'with builtins; x: filter (f: !elem f [ "defaults" "meta" ]) (attrNames x)' --json)
echo "matrix=$JSON" >> $GITHUB_OUTPUT
build:
name: "Build node"

Check failure on line 22 in .github/workflows/closures.yml

View workflow run for this annotation

GitHub Actions / Build closures with Colmena

Invalid workflow file

The workflow is not valid. .github/workflows/closures.yml (Line: 22, Col: 5): Required property is missing: runs-on
needs: generate_matrix
strategy:
# each closure is independent from each other
fail-fast: false
matrix:
node: ${{ fromJSON(needs.generate_matrix.outputs.matrix) }}
steps:
- uses: ./.github/actions/bootstrap.yml
- name: Build ${{ matrix.node }}
run: |
nix run nixpkgs#colmena -- build --no-build-on-target -v --on ${{ matrix.node }}