You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -35,7 +35,7 @@ GitHub Action to set up the [pixi](https://github.com/prefix-dev/pixi) package m
35
35
36
36
> [!WARNING]
37
37
> Since pixi is not yet stable, the API of this action may change between minor versions.
38
-
> Please pin the versions of this action to a specific version (i.e., `prefix-dev/[email protected].1`) to avoid breaking changes.
38
+
> Please pin the versions of this action to a specific version (i.e., `prefix-dev/[email protected].2`) to avoid breaking changes.
39
39
> You can automatically update the version of this action by using [Dependabot](https://docs.github.com/en/code-security/dependabot/working-with-dependabot/keeping-your-actions-up-to-date-with-dependabot).
40
40
>
41
41
> Put the following in your `.github/dependabot.yml` file to enable Dependabot for your GitHub Actions:
@@ -59,22 +59,25 @@ To see all available input arguments, see the [`action.yml`](action.yml) file.
59
59
60
60
### Caching
61
61
62
-
The action supports caching of the pixi environment.
63
-
By default, caching is enabled if a `pixi.lock` file is present.
62
+
The action supports caching of the project and global pixi environments.
63
+
By default, project environment caching is enabled if a `pixi.lock` file is present.
64
64
It will then use the `pixi.lock` file to generate a hash of the environment and cache it.
65
65
If the cache is hit, the action will skip the installation and use the cached environment.
66
66
You can specify the behavior by setting the `cache` input argument.
67
67
68
-
If you need to customize your cache-key, you can use the `cache-key` input argument.
69
-
This will be the prefix of the cache key. The full cache key will be `<cache-key><conda-arch>-<hash>`.
68
+
Global environment caching is disabled by default and can be enabled by setting the `global-cache` input to `true`.
69
+
As there is no lockfile for global environments, the cache will expire at the end of every month to ensure it does not go stale.
70
+
71
+
If you need to customize your cache-key, you can use the `cache-key` and `global-cache-key` input arguments.
72
+
These will be the prefixes of the cache keys. The full cache keys will be `<cache-key><conda-arch>-<hash>` and `<global-cache-key><conda-arch>-<YYYY-MM>-<hash>` respectively.
70
73
71
74
#### Only save caches on `main`
72
75
73
76
In order to not exceed the [10 GB cache size limit](https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#usage-limits-and-eviction-policy) as fast, you might want to restrict when the cache is saved.
74
77
This can be done by setting the `cache-write` argument.
@@ -210,7 +213,7 @@ Specify the conda-token using the `auth-conda-token` input argument.
210
213
This form of authentication (token is encoded in URL: `https://my-quetz-instance.com/t/<token>/get/custom-channel`) is used at [anaconda.org](https://anaconda.org) or with [quetz instances](https://github.com/mamba-org/quetz).
@@ -394,7 +397,7 @@ If nothing is specified, `post-cleanup` will default to `true`.
394
397
On self-hosted runners, you also might want to alter the default pixi install location to a temporary location. You can use `pixi-bin-path: ${{ runner.temp }}/bin/pixi` to do this.
@@ -431,7 +434,7 @@ You can also download pixi from a custom URL by setting the `pixi-url` input arg
431
434
Optionally, you can combine this with the `pixi-url-headers` input argument to supply additional headers for the download request, such as a bearer token.
0 commit comments