.github: Add Cachix cache
This commit is contained in:
parent
b891094b39
commit
1f738c8014
3 changed files with 17 additions and 0 deletions
8
.github/workflows/build.yml
vendored
8
.github/workflows/build.yml
vendored
|
@ -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') }}
|
||||
|
|
5
.github/workflows/manual.yml
vendored
5
.github/workflows/manual.yml
vendored
|
@ -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
|
||||
|
||||
|
|
|
@ -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.*
|
||||
|
|
Loading…
Reference in a new issue