Bringing back the Magic Nix Cache Action

13 Likes

Great thanks to everybody involved!

3 Likes

DeterminateSystems/magic-nix-cache-action@main

I’m still getting

Warning: Magic Nix Cache has been deprecated due to a change in the underlying GitHub APIs and will stop working on 1 February 2025.
To continue caching Nix builds in GitHub Actions, use FlakeHub Cache instead.

Replace...
          "uses": "DeterminateSystems/magic-nix-cache-action@main"

...with...
          "uses": "DeterminateSystems/flakehub-cache-action@main"

For more details: https://dtr.mn/magic-nix-cache-eol
1 Like

What’s the latest on how it compares now that there is GitHub - nix-community/cache-nix-action: Cache Nix Store in GitHub Actions to speed up workflows [maintainer=@deemp] ?

Is there a “ELI5” version…

3 Likes

Thanks for reporting! This was just now fixed in this PR and the fixed version is available in v11.

1 Like

The most salient differences:

  1. Magic Nix Cache Action lets you install Nix however you like, whereas cache-nix-action requires nix-quick-install-action.
  2. Magic Nix Cache Action requires zero configuration for most use cases.

That is not my experience. What makes you say that?

Oh, the README says so. I hope that is just badly worded.