.github: Add Cachix cache

This commit is contained in:
Zhaofeng Li 2021-11-17 22:21:00 -08:00
parent b891094b39
commit 1f738c8014
3 changed files with 17 additions and 0 deletions

View file

@ -21,6 +21,10 @@ jobs:
install_url: ${{ matrix.nix.url }}
extra_nix_config: |
experimental-features = nix-command flakes
- uses: cachix/cachix-action@v10
with:
name: colmena
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- run: nix flake check
if: ${{ !contains(matrix.nix.name, '2.3') }}
@ -54,6 +58,10 @@ jobs:
install_url: ${{ matrix.nix.url }}
extra_nix_config: |
experimental-features = nix-command flakes
- uses: cachix/cachix-action@v10
with:
name: colmena
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- run: nix-shell --run "cargo test"
if: ${{ !contains(matrix.nix.name, '2.3') }}

View file

@ -15,6 +15,11 @@ jobs:
install_url: https://releases.nixos.org/nix/nix-2.4/install
extra_nix_config: |
experimental-features = nix-command flakes
- uses: cachix/cachix-action@v10
with:
name: colmena
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: Build manual
run: nix build -o out .#manual -L

View file

@ -33,6 +33,10 @@ To install the latest development version to the user profile, use `default.nix`
nix-env -if default.nix
```
### Binary Cache
A public binary cache is available at https://colmena.cachix.org, courtesy of Cachix.
## Tutorial
*See Tutorial with Flakes for usage with Nix Flakes.*