cachix
Sets up the Cachix daemon for Nix caching
Usage
As composite steps do not provide a method to automatically add post-workflow steps, this action consists of two seperate ones. One for initializing Cachix and one for stopping it.
To use this action, you will need a Cachix cache and an auth token for this cache.
Add the CACHIX_AUTH_TOKEN action secret. Then add the follwing step to your workflow:
steps:
- name: Cache
uses: https://codeberg.org/nix-actions/cachix@main
with:
- name: my-cachix-cache
name defaults to the CACHIX_CACHE_NAME repository variable, so it is possible to set this variable and leave out name.
At the end of your workflow, also add the post-worflow step:
- name: Cache (post)
uses: https://codeberg.org/nix-actions/cachix/post@main