Closed amitaibu closed 1 year ago
Build takes 30min, but we should add cachix, and I believe it would speed it up once it's cached.
For this repo we need to add RSA keys (see error)
ssh-keygen -t rsa -b 4096 -m PEM -f ./Config/jwtRS256.key && openssl rsa -in ./Config/jwtRS256.key -pubout -outform PEM -out ./Config/jwtRS256.key.pub
devenv up
errors, and exit test@amitaibu the nodejs issue was also reported to me by @s0kil. It seems something is off with our current nixpkgs revision that causes nodejs to be not in the standard binary cache
nix-shell --run "runghc $(make print-ghc-extensions) -i. -ibuild -iConfig Test/Main.hs"
seems to invoke all the tests of all the packages, Not just the custom ones. See example
I think my above assumption is wrong, and that those packages tests are running as part of the build process.
It's running even when I've commented out nix-shell --run "runghc $(make print-ghc-extensions) -i. -ibuild -iConfig Test/Main.hs"
Yes this is caused by nix building a lot of stuff. It seems you've swapped out the binary cache in your github action. To speed up the build it would be helpful to add the digitallyinduced binary cache as well (using skipPush: true
):
- name: Cachix Init
uses: cachix/cachix-action@v12
with:
name: digitallyinduced
skipPush: true
You can have multiple cachix-actions in a single github action, so you can still keep your own cachix cache there as well
It seems you've swapped out the binary cache in your github action
Yeah, just playing around with it. Is there a reason for me to indeed do that, or safe to stay with DI's cachix?
Oh yeah, the last commit ran for 4m, and executed the tests! :balloon:
Great!
It seems something is off with our current nixpkgs revision that causes nodejs to be not in the standard binary cache
We still need to figure this one.
I saw the installation of
node
takes a long time. I'm experiencing similar behavior on my laptop (I think it was faster on my desktop computer, but it might have been long time ago and I just don't remember).By removing
node
, build time was much faster. It's now erroring here, which is probably outdated. I'll try to usedevenv up