mirror of
https://github.com/DeterminateSystems/magic-nix-cache-action.git
synced 2024-12-26 17:30:34 +01:00
Merge pull request #54 from DeterminateSystems/bring-back-store-diffing-optionally
Bring back store diffing (optionally)
This commit is contained in:
commit
a47252d944
5 changed files with 11 additions and 2 deletions
|
@ -94,6 +94,7 @@ cat action.yml| nix run nixpkgs#yq-go -- '[[ "Parameter", "Description", "Requir
|
|||
| Parameter | Description | Required | Default |
|
||||
| --------------------------- | --------------------------------------------------------------------------------------------------------------- | -------- | -------------------------------------------------------- |
|
||||
| `diagnostic-endpoint` | Diagnostic endpoint url where diagnostics and performance data is sent. To disable set this to an empty string. | | https://install.determinate.systems/magic-nix-cache/perf |
|
||||
| `diff-store` | Whether or not to diff the store before and after Magic Nix Cache runs. | | `false` |
|
||||
| `flakehub-api-server` | The FlakeHub API server. | | https://api.flakehub.com |
|
||||
| `flakehub-cache-server` | The FlakeHub binary cache server. | | https://cache.flakehub.com |
|
||||
| `flakehub-flake-name` | The name of your flake on FlakeHub. The empty string will autodetect your FlakeHub flake. | | `""` |
|
||||
|
|
|
@ -34,6 +34,11 @@ inputs:
|
|||
startup-notification-port:
|
||||
description: "The port magic-nix-cache uses for daemon startup notification."
|
||||
default: 41239
|
||||
diff-store:
|
||||
description: "Whether or not to diff the store before and after Magic Nix Cache runs"
|
||||
default: false
|
||||
required: false
|
||||
|
||||
source-binary:
|
||||
description: Run a version of the cache binary from somewhere already on disk. Conflicts with all other `source-*` options.
|
||||
source-branch:
|
||||
|
|
3
dist/index.js
generated
vendored
3
dist/index.js
generated
vendored
|
@ -94915,6 +94915,7 @@ var MagicNixCacheAction = class {
|
|||
const flakeHubApiServer = inputs_exports.getString("flakehub-api-server");
|
||||
const flakeHubFlakeName = inputs_exports.getString("flakehub-flake-name");
|
||||
const useGhaCache = inputs_exports.getBool("use-gha-cache");
|
||||
const diffStore = inputs_exports.getBool("diff-store");
|
||||
const daemonCliFlags = [
|
||||
"--startup-notification-url",
|
||||
`http://127.0.0.1:${notifyPort}`,
|
||||
|
@ -94926,7 +94927,7 @@ var MagicNixCacheAction = class {
|
|||
diagnosticEndpoint,
|
||||
"--nix-conf",
|
||||
nixConfPath
|
||||
].concat(
|
||||
].concat(diffStore ? ["--diff-store"] : []).concat(
|
||||
useFlakeHub ? [
|
||||
"--use-flakehub",
|
||||
"--flakehub-cache-server",
|
||||
|
|
2
dist/index.js.map
generated
vendored
2
dist/index.js.map
generated
vendored
File diff suppressed because one or more lines are too long
|
@ -165,6 +165,7 @@ class MagicNixCacheAction {
|
|||
const flakeHubApiServer = inputs.getString("flakehub-api-server");
|
||||
const flakeHubFlakeName = inputs.getString("flakehub-flake-name");
|
||||
const useGhaCache = inputs.getBool("use-gha-cache");
|
||||
const diffStore = inputs.getBool("diff-store");
|
||||
|
||||
const daemonCliFlags: string[] = [
|
||||
"--startup-notification-url",
|
||||
|
@ -178,6 +179,7 @@ class MagicNixCacheAction {
|
|||
"--nix-conf",
|
||||
nixConfPath,
|
||||
]
|
||||
.concat(diffStore ? ["--diff-store"] : [])
|
||||
.concat(
|
||||
useFlakeHub
|
||||
? [
|
||||
|
|
Loading…
Reference in a new issue