2023-06-26 05:18:41 +02:00
|
|
|
name: Magic Nix Cache
|
|
|
|
branding:
|
|
|
|
icon: "box"
|
|
|
|
color: "purple"
|
|
|
|
description: "Free, no-configuration Nix cache. Cut CI time by 50% or more by caching to GitHub Actions' cache."
|
|
|
|
inputs:
|
2023-12-04 22:47:15 +01:00
|
|
|
use-gha-cache:
|
|
|
|
description: "Whether to upload build results to the GitHub Actions cache."
|
|
|
|
default: true
|
|
|
|
required: false
|
2023-06-26 05:18:41 +02:00
|
|
|
listen:
|
|
|
|
description: The host and port to listen on.
|
|
|
|
default: 127.0.0.1:37515
|
|
|
|
upstream-cache:
|
|
|
|
description: Your preferred upstream cache. Store paths in this store will not be cached in GitHub Actions' cache.
|
|
|
|
default: https://cache.nixos.org
|
|
|
|
diagnostic-endpoint:
|
|
|
|
description: "Diagnostic endpoint url where diagnostics and performance data is sent. To disable set this to an empty string."
|
|
|
|
default: "https://install.determinate.systems/magic-nix-cache/perf"
|
2023-12-04 22:47:15 +01:00
|
|
|
use-flakehub:
|
2024-02-27 18:25:53 +01:00
|
|
|
description: "Whether to upload build results to FlakeHub Cache."
|
2023-12-04 22:47:15 +01:00
|
|
|
default: true
|
|
|
|
required: false
|
2023-12-11 13:46:39 +01:00
|
|
|
flakehub-cache-server:
|
|
|
|
description: "The FlakeHub binary cache server."
|
2024-02-15 22:03:08 +01:00
|
|
|
default: "https://cache.flakehub.com"
|
2023-12-04 22:47:15 +01:00
|
|
|
flakehub-api-server:
|
|
|
|
description: "The FlakeHub API server."
|
|
|
|
default: "https://api.flakehub.com"
|
2024-02-27 18:24:08 +01:00
|
|
|
flakehub-flake-name:
|
|
|
|
description: "The name of your flake on FlakeHub. Defaults to the current name of the GitHub repository it is running in."
|
|
|
|
default: ${{ github.repository }}
|
|
|
|
required: false
|
2024-02-23 16:09:29 +01:00
|
|
|
startup-notification-port:
|
|
|
|
description: "The port magic-nix-cache uses for daemon startup notification."
|
|
|
|
default: 41239
|
2024-04-26 16:37:43 +02:00
|
|
|
source-binary:
|
|
|
|
description: Run a version of the cache binary from somewhere already on disk. Conflicts with all other `source-*` options.
|
|
|
|
source-branch:
|
|
|
|
description: The branch of `magic-nix-cache` to use. Conflicts with all other `source-*` options.
|
|
|
|
required: false
|
|
|
|
source-pr:
|
|
|
|
description: The PR of `magic-nix-cache` to use. Conflicts with all other `source-*` options.
|
|
|
|
required: false
|
|
|
|
source-revision:
|
|
|
|
description: The revision of `nix-magic-nix-cache` to use. Conflicts with all other `source-*` options.
|
|
|
|
required: false
|
|
|
|
source-tag:
|
|
|
|
description: The tag of `magic-nix-cache` to use. Conflicts with all other `source-*` options.
|
|
|
|
required: false
|
|
|
|
source-url:
|
|
|
|
description: A URL pointing to a `magic-nix-cache` binary. Overrides all other `source-*` options.
|
|
|
|
required: false
|
2023-06-26 05:18:41 +02:00
|
|
|
|
|
|
|
runs:
|
2024-01-24 19:44:35 +01:00
|
|
|
using: "node20"
|
2023-06-26 05:18:41 +02:00
|
|
|
main: "./dist/index.js"
|
|
|
|
post: "./dist/index.js"
|