Open tomshabtay opened 7 months ago
20s sounds reasonable 🤔 . The bulk of the time is probably taken by installing Nix + packages.
I tried changing the input skip-nix-installation to false which fail the action, I guess this variable can help in case the github runner already has nix installed.
Correct
I noticed that install-nix-action is able to complete ~4s: https://github.com/cachix/install-nix-action/actions/runs/8198580795/job/22422336858 Maybe we can see what optimization that they use there?
@dephiros I think for install-nix-action, the 4s is just installing Nix without any packages. Based on the screenshot it looks like ours also took around 5s (from 09:55:27 to 09:55:33). The rest of ~12s was spent on restoring the nix store cache from GitHub. Perhaps there's something we can do to optimize that cache restoration part 🤔
cc @kalbasit
Running the action is taking about 20 seconds to complete. does it sound reasonable? any suggestions how to make it faster?
Looking at the log, this the longest part of the action:
I tried changing the input
skip-nix-installation
tofalse
which fail the action, I guess this variable can help in case the github runner already has nix installed.adding the
devbox.json
just in case:Thanks!