Coder Social home page Coder Social logo

Comments (2)

andreabedini avatar andreabedini commented on June 14, 2024

nix-eval-jobs seems to be able to do the evaluation in parallel. It would spit out a json file we can read back into GHA. Something like this:

  eval-jobs:
    outputs:
      matrix: ${{ steps.set-matrix.outputs.matrix }}
    steps:
    - run: |
        nix-eval-jobs --flake path:$PWD#packages.x86_64-linux.allPackages --override-input CHaP path:_repo > jobs.json
    - id: set-matrix
      run: |
        echo "::set-output name=matrix::$(jq @text < dist-newstyle/cache/plan.json)" # maybe with some json wrangling
  build-packages:
    needs: eval-jobs
    strategy:
      matrix: ${{fromJson(needs.eval-jobs.outputs.matrix)}}

from cardano-haskell-packages.

michaelpj avatar michaelpj commented on June 14, 2024

Hmm, interesting. Hopefully it'll use remote builders for the IFD still, but that could be a big improvement.

I'm unsure if we want to generate a matrix: probably we do if it's for the smoke test or new packages, but we wouldn't if we decided to try and build everything since matrixes are limited to 256 jobs (hah). And also the real parallelism will be happening on nixbuild.net, we'll just be occupying |matrix| runners sitting there waiting for builds to finish!

Also it doesn't yet support --override-input. Maybe we can just do --update-input beforehand instead.

from cardano-haskell-packages.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.