@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 CHANGED
@@ -1,6 +1,8 @@
1
1
  ![license: MIT/Apache-2.0](https://img.shields.io/badge/license-MIT%2FApache--2.0-blue.svg)
2
2
  [![npm](https://img.shields.io/npm/v/@dusksystems/nix-cache-action)](https://www.npmjs.com/package/@dusksystems/nix-cache-action)
3
3
 
4
+ [![codecov](https://codecov.io/gh/DuskSystems/nix-cache-action/graph/badge.svg)](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 of course is this relies on the substituters being consistently available, and fast to fetch from, at restore time.
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-uyE_Mka3.js";
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-uyE_Mka3.js";
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();