@dusksystems/nix-cache-action 1.3.0 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -1
- package/dist/restore.js +1 -1
- package/dist/save.js +1 -1
- package/dist/{snapshot-uyE_Mka3.js → snapshot-jCsKKJ-r.js} +4004 -3975
- package/dist/snapshot-jCsKKJ-r.js.map +1 -0
- package/package.json +4 -2
- package/dist/snapshot-uyE_Mka3.js.map +0 -1
package/README.md
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|

|
|
2
2
|
[](https://www.npmjs.com/package/@dusksystems/nix-cache-action)
|
|
3
3
|
|
|
4
|
+
[](https://codecov.io/gh/DuskSystems/nix-cache-action)
|
|
5
|
+
|
|
4
6
|
# `nix-cache-action`
|
|
5
7
|
|
|
6
8
|
A GitHub Action for caching Nix.
|
|
@@ -18,6 +20,8 @@ A GitHub Action for caching Nix.
|
|
|
18
20
|
|
|
19
21
|
## Why?
|
|
20
22
|
|
|
23
|
+
### Efficiency
|
|
24
|
+
|
|
21
25
|
- [`nix-community/cache-nix-action`] caches the entire `/nix` directory.
|
|
22
26
|
- [`DeterminateSystems/magic-nix-cache`] caches every store path closure.
|
|
23
27
|
- [`DuskSystems/nix-cache-action`] caches only what can't be fetched from substituters.
|
|
@@ -57,7 +61,11 @@ Results in the following cache save stats:
|
|
|
57
61
|
| `magic-nix-cache` | 200 | 798 MiB |
|
|
58
62
|
| `nix-cache-action` | 1 | 377 MiB |
|
|
59
63
|
|
|
60
|
-
The tradeoff
|
|
64
|
+
The tradeoff is this relies on substituters being consistently available and fast to fetch from at restore time.
|
|
65
|
+
|
|
66
|
+
### Compatibility
|
|
67
|
+
|
|
68
|
+
Since this action uses [`@actions/cache`], it should be compatible with alternative GitHub Actions runners that provide their own cache backends.
|
|
61
69
|
|
|
62
70
|
## License
|
|
63
71
|
|
|
@@ -66,3 +74,4 @@ The tradeoff of course is this relies on the substituters being consistently ava
|
|
|
66
74
|
[`nix-community/cache-nix-action`]: https://github.com/nix-community/cache-nix-action
|
|
67
75
|
[`DeterminateSystems/magic-nix-cache`]: https://github.com/DeterminateSystems/magic-nix-cache
|
|
68
76
|
[`DuskSystems/nix-cache-action`]: https://github.com/DuskSystems/nix-cache-action
|
|
77
|
+
[`@actions/cache`]: https://github.com/actions/toolkit/tree/main/packages/cache
|
package/dist/restore.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as e, d as t, f as n, i as r, l as i, n as a, r as o, s, t as c, u as l } from "./snapshot-
|
|
1
|
+
import { a as e, d as t, f as n, i as r, l as i, n as a, r as o, s, t as c, u as l } from "./snapshot-jCsKKJ-r.js";
|
|
2
2
|
//#region src/restore.ts
|
|
3
3
|
var u = async () => {
|
|
4
4
|
let t = await r.load();
|
package/dist/save.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as e, d as t, i as n, l as r, n as i, o as a, r as o, t as s } from "./snapshot-
|
|
1
|
+
import { c as e, d as t, i as n, l as r, n as i, o as a, r as o, t as s } from "./snapshot-jCsKKJ-r.js";
|
|
2
2
|
//#region src/save.ts
|
|
3
3
|
var c = async () => {
|
|
4
4
|
let t = await n.load();
|