|
51 | 51 | steps: |
52 | 52 | |
53 | 53 | - uses: DeterminateSystems/determinate-nix-action@v3 |
54 | | - - uses: DeterminateSystems/flakehub-cache-action@v3 # or v3.6.2 to pin to a release |
| 54 | + - uses: DeterminateSystems/flakehub-cache-action@v2 # or v2.1 to pin to a release |
55 | 55 | - run: nix build . |
56 | 56 | ``` |
57 | 57 |
|
|
65 | 65 | Unlike `DeterminateSystems/magic-nix-cache-action`, we fully support explicit version pinning for maximum consistency. |
66 | 66 | This Action is **automatically tagged** for every release, giving you complete control over your CI environment: |
67 | 67 |
|
68 | | -📍 Pinning to `DeterminateSystems/flakehub-cache-action@v3.6.2` guarantees: |
| 68 | +📍 Pinning to `DeterminateSystems/flakehub-cache-action@v2.1` guarantees: |
69 | 69 |
|
70 | 70 | - Same `flakehub-cache-action` revision every time |
71 | 71 | - Reproducible CI workflows, even years later |
@@ -93,28 +93,28 @@ updates: |
93 | 93 |
|
94 | 94 | ## ️⚙️ Configuration |
95 | 95 |
|
96 | | -| Parameter | Description | Required | Default | |
97 | | -|-----------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------|------------------------------| |
| 96 | +| Parameter | Description | Required | Default | |
| 97 | +|-----------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------|--------------------------------------------| |
98 | 98 | | `use-gha-cache` | Whether to upload build results to the Github Actions cache. |
99 | 99 | Set to "no-preference" or null to have the GitHub Actions cache turn on if it is available, and FlakeHub Cache is not available (default). |
100 | 100 | Set to "enabled" or true to explicitly request the GitHub Actions Cache. |
101 | 101 | Set to "disabled" or false to explicitly disable the GitHub Actions Cache. |
102 | | - | | | |
103 | | -| `flakehub-flake-name` | The name of your flake on FlakeHub. The empty string will autodetect your FlakeHub flake. | | `` | |
104 | | -| `diff-store` | Whether or not to diff the store before and after Magic Nix Cache runs | | `False` | |
105 | | -| `startup-notification-port` | The port magic-nix-cache uses for daemon startup notification. | | `41239` | |
106 | | -| `listen` | The host and port to listen on. | | `127.0.0.1:37515` | |
107 | | -| `upstream-cache` | Your preferred upstream cache. Store paths in this store will not be cached in GitHub Actions' cache. | | `https://cache.nixos.org` | |
108 | | -| `diagnostic-endpoint` | Diagnostic endpoint url where diagnostics and performance data is sent. To disable set this to an empty string. | | `-` | |
109 | | -| `source-binary` | Run a version of the cache binary from somewhere already on disk. Conflicts with all other `source-*` options. | | | |
110 | | -| `source-branch` | The branch of `magic-nix-cache` to use. Conflicts with all other `source-*` options. | | | |
111 | | -| `source-pr` | The PR of `magic-nix-cache` to use. Conflicts with all other `source-*` options. | | | |
112 | | -| `source-revision` | The revision of `nix-magic-nix-cache` to use. Conflicts with all other `source-*` options. | | | |
113 | | -| `source-tag` | The tag of `magic-nix-cache` to use. Conflicts with all other `source-*` options. | | `v3.6.2` | |
114 | | -| `source-url` | A URL pointing to a `magic-nix-cache` binary. Overrides all other `source-*` options. | | | |
115 | | -| `flakehub-cache-server` | The FlakeHub binary cache server. | | `https://cache.flakehub.com` | |
116 | | -| `flakehub-api-server` | The FlakeHub API server. | | `https://api.flakehub.com` | |
117 | | -| `_internal-strict-mode` | Whether to fail when any errors are thrown. Used only to test the Action; do not set this in your own workflows. | | `False` | |
| 102 | + | | | |
| 103 | +| `flakehub-flake-name` | The name of your flake on FlakeHub. The empty string will autodetect your FlakeHub flake. | | `` | |
| 104 | +| `diff-store` | Whether or not to diff the store before and after Magic Nix Cache runs | | `False` | |
| 105 | +| `startup-notification-port` | The port magic-nix-cache uses for daemon startup notification. | | `41239` | |
| 106 | +| `listen` | The host and port to listen on. | | `127.0.0.1:37515` | |
| 107 | +| `upstream-cache` | Your preferred upstream cache. Store paths in this store will not be cached in GitHub Actions' cache. | | `https://cache.nixos.org` | |
| 108 | +| `diagnostic-endpoint` | Diagnostic endpoint url where diagnostics and performance data is sent. To disable set this to an empty string. | | `-` | |
| 109 | +| `source-binary` | Run a version of the cache binary from somewhere already on disk. Conflicts with all other `source-*` options. | | | |
| 110 | +| `source-branch` | The branch of `magic-nix-cache` to use. Conflicts with all other `source-*` options. | | | |
| 111 | +| `source-pr` | The PR of `magic-nix-cache` to use. Conflicts with all other `source-*` options. | | | |
| 112 | +| `source-revision` | The revision of `nix-magic-nix-cache` to use. Conflicts with all other `source-*` options. | | `c79f1550609d4e9c4065a27fd599e76a94e0278d` | |
| 113 | +| `source-tag` | The tag of `magic-nix-cache` to use. Conflicts with all other `source-*` options. | | | |
| 114 | +| `source-url` | A URL pointing to a `magic-nix-cache` binary. Overrides all other `source-*` options. | | | |
| 115 | +| `flakehub-cache-server` | The FlakeHub binary cache server. | | `https://cache.flakehub.com` | |
| 116 | +| `flakehub-api-server` | The FlakeHub API server. | | `https://api.flakehub.com` | |
| 117 | +| `_internal-strict-mode` | Whether to fail when any errors are thrown. Used only to test the Action; do not set this in your own workflows. | | `False` | |
118 | 118 |
|
119 | 119 | ## 🛟 Need help? We're here for you! |
120 | 120 |
|
|
0 commit comments