top | item 43618667

(no title)

cdata | 10 months ago

I wonder if you could pair this with nix e.g.,:

    - shell: nix develop --command {0}
      run: ...

discuss

order

asmor|10 months ago

In my experience, the default VM size is so slow, you probably don't want Nix on a workflow that doesn't already take minutes.

Even with a binary cache (we used R2), installing Lix, Devbox and some common tools costs us 2 1/2 minutes. Just evaluating the derivation takes ~20-30 seconds.

adobrawy|10 months ago

You can use a self-hosted runner with an image that has anything pre-loaded.

manx|10 months ago

Is there a way to cache the derivation evaluation?

tadfisher|10 months ago

Yes, we do this, although you need to do `nix develop --command bash -- {0}` to make it behave as a shell.