Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nix in CI: First call using nix takes about an hour #277

Open
tateexon opened this issue Mar 30, 2022 · 1 comment
Open

Nix in CI: First call using nix takes about an hour #277

tateexon opened this issue Mar 30, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@tateexon
Copy link
Contributor

tateexon commented Mar 30, 2022

When we tried to use nix in github actions for this repo we run into an issue where the first nix call always takes about an hour to run. We do not have this issue in the terra repo. I did not manage to find a way to use a cache to solve the problem and so I am not sure how to get around it at this time.

For now we have ripped nix out of any github actions for this repository until a fix can be implemented.
Mostly recently ripped out in #256 in the commit 8509c27

@tateexon tateexon added the bug Something isn't working label Mar 30, 2022
@archseer
Copy link
Collaborator

archseer commented Apr 1, 2022

Why wasn't I pinged about this?

This is because shell.nix is my development setup that uses saber-overlay to compile the entire solana toolchain from source. https://github.com/smartcontractkit/chainlink-solana/blob/a3d61f6006f9c16ecd8af969d5d7f9811c977228/flake.nix#L8-L9=

Saber does offer a Cachix (https://www.cachix.org/) cache with binary builds. This is enough to have it pull from cache: https://github.com/saber-hq/install-solana-action/blob/a0a2ac5593e1bd21e2346c0de077b0d8fa92ae93/action.yml#L20-L23=

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants