input-output-hk / devx

The Developer Experience Shell - This repo contains a nix develop shell for haskell. Its primary purpose is to help get a development shell for haskell quickly and across multiple operating systems (and architectures).
Apache License 2.0
39 stars 9 forks source link

Dynamic Build Matrix #101

Open angerman opened 1 year ago

angerman commented 1 year ago

We currently wait for hydra jobs, and then run a set of pre-defined jobs to build. But it would be better (also ux wise) if we took the hydra jobs, and then generically generated the containers/codespaces. Maybe use a regex to extract the necessary bits, and create a dynamic matrix.

https://www.kenmuse.com/blog/dynamic-build-matrices-in-github-actions/.

To get this right, it somewhat depends on #100.

andreabedini commented 1 year ago

We can use nix-eval-jobs for that. IIRC can point it to a specific attribute to use as root.

angerman commented 1 year ago

@andreabedini yes, we just need to make sure we don't need to build anything 😅

andreabedini commented 1 year ago

@andreabedini yes, we just need to make sure we don't need to build anything 😅

true :-/ Maybe --option allow-import-from-derivation false can be a fail safe?