You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+29-29Lines changed: 29 additions & 29 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,38 +1,38 @@
1
1
# Magic Nix Cache
2
2
3
-
> [!WARNING]
4
-
> The [Magic Nix Cache will will stop working](https://determinate.systems/posts/magic-nix-cache-free-tier-eol) on **February 1st, 2025** unless you're on [GitHub Enterprise Server](https://github.com/enterprise).
5
-
>
6
-
> You can upgrade to [FlakeHub Cache](https://flakehub.com/cache) and get **one month free** using the coupon code **`FHC`**.
7
-
>
8
-
> For more information, read [this blog post](https://determinate.systems/posts/magic-nix-cache-free-tier-eol/).
9
-
10
3
Save 30-50%+ of CI time without any effort or cost.
11
4
Use Magic Nix Cache, a totally free and zero-configuration binary cache for Nix on GitHub Actions.
12
5
13
-
Add our [GitHub Action][action] after installing Nix, in your workflow, like this:
6
+
In your workflow, add our [GitHub Action][action] after installing Nix, like this:
> You can upgrade to [FlakeHub Cache][flakehub-cache] and get **one month free** using the coupon code **`FHC`**.
18
+
21
19
## Why use the Magic Nix Cache?
22
20
23
-
Magic Nix Cache uses the GitHub Actions [built-in cache][ghacache] to share builds between Workflow runs, and has many advantages over alternatives.
21
+
Magic Nix Cache uses the GitHub Actions [built-in cache][gha-cache] to share builds between workflow runs, and has many advantages over alternatives.
24
22
25
-
1. Totally free: backed by GitHub Actions' cache, there is no additional service to pay for.
26
-
1. Zero configuration: add our action to your workflow.
23
+
1. **Totally free**. Backed by GitHub Actions' cache, there is no additional service to pay for.
24
+
1. **Zero configuration**. Add our Action to your workflow.
27
25
That's it.
28
-
Everything built in your workflow will be cached.
29
-
1. No secrets: Forks and pull requests benefit from the cache, too.
30
-
1. Secure: Magic Nix Cache follows the [same semantics as the GitHub Actions cache][semantics], and malicious pull requests cannot pollute your project.
31
-
1. Private: The cache is stored in the GitHub Actions cache, not with an additional third party.
26
+
Everything built in your workflow is cached.
27
+
1. **No secrets**. Forks and pull requests benefit from the cache, too.
28
+
1. **Secure**. Magic Nix Cache follows the [same semantics as the GitHub Actions cache][semantics] and malicious pull requests cannot pollute your project.
29
+
1. **Private**. The cache is stored in the GitHub Actions cache, not with an additional third party.
32
30
33
-
> **Note:** the Magic Nix Cache doesn't offer a publicly available cache.
31
+
> [!NOTE]
32
+
>
33
+
> The Magic Nix Cache doesn't offer a publicly available cache.
34
34
> This means the cache is only usable in CI.
35
-
> [Zero to Nix][z2n] has an article on binary caching if you want to [share Nix builds][z2ncache] with users outside of CI.
35
+
> Use [FlakeHub Cache][cache] if you want to [share Nix builds][z2ncache] with users outside of CI.
| `source-tag` | The tag of `magic-nix-cache` to use. Conflicts with all other `source-*` options. | | |
114
114
| `source-url` | A URL pointing to a `magic-nix-cache` binary. Overrides all other `source-*` options. | | |
115
115
| `startup-notification-port` | The port magic-nix-cache uses for daemon startup notification. | | 41239 |
116
-
| `upstream-cache` | Your preferred upstream cache. Store paths in this store will not be cached in GitHub Actions' cache. | | https://cache.nixos.org |
116
+
| `upstream-cache` | Your preferred upstream cache. Store paths in this store aren't cached in GitHub Actions' cache. | | https://cache.nixos.org |
117
117
| `use-flakehub` | Whether to upload build results to FlakeHub Cache (private beta). | | true |
118
118
| `use-gha-cache` | Whether to upload build results to the GitHub Actions cache. | | true |
0 commit comments