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

[ci] use nix caching for actions cache #52

Open
VTimofeenko opened this issue Dec 5, 2023 · 5 comments
Open

[ci] use nix caching for actions cache #52

VTimofeenko opened this issue Dec 5, 2023 · 5 comments

Comments

@VTimofeenko
Copy link
Contributor

No description provided.

@musjj
Copy link

musjj commented Jan 9, 2024

Would love to have this too.

There's instructions here: https://nix.dev/tutorials/nixos/continuous-integration-github-actions. Shouldn't be hard to set it up.

Also, it's free for open-source projects (up to 5GB).

@VTimofeenko
Copy link
Contributor Author

VTimofeenko commented Jan 11, 2024

I was actually thinking about magic-nix-cache as cachix requires specifying secrets on the repo level and ownership of one more system. I'd rather keep this project self-contained on github.

Currently the build action is configured to run <=> the package definition changes, and most of the development in this repo is done on modules, so there is little benefit to be had in this for now.

It would probably be more relevant when qemu-based tests are done in #16

@musjj
Copy link

musjj commented Jan 12, 2024

I don't think end-users can use the magic-nix-cache as a binary cache. It's only meant to be used to speed up the CI.
I thought the issue was about providing a binary cache so that users don't have to build the program locally.

@VTimofeenko
Copy link
Contributor Author

Yeah, I don't think github cache can be made public. End-user facing cache would be #29

@musjj
Copy link

musjj commented Jan 12, 2024

Oh thanks, didn't notice that issue.
Btw, does this concern:

cachix requires specifying secrets on the repo level and ownership of one more system. I'd rather keep this project self-contained on github.

also applies to the end-user facing cache? Because I don't think it'd be possible to provide a nix binary cache that is self-contained on GitHub.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants