add(nix): add binary cache zellij (#1157)

adds a binary cache called `zellij`, hosted by
https://www.cachix.org/
to the project, users can now use the cache by running:
```
cachix use zellij
```

Step by step:
```
bash <(curl -L https://nixos.org/nix/install)
nix-env -iA cachix -f https://cachix.org/api/v1/install
cachix use zellij
nix-build
```

Documentation: https://docs.cachix.org/installation#
This commit is contained in:
a-kenji 2022-03-02 18:48:42 +01:00 committed by GitHub
parent f77c3006dc
commit e0685f6548
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 0 deletions

View file

@ -12,6 +12,7 @@ jobs:
nix: nix:
runs-on: ubuntu-latest runs-on: ubuntu-latest
name: nix-build name: nix-build
environment: cachix
timeout-minutes: 15 timeout-minutes: 15
steps: steps:
- uses: actions/checkout@v2.4.0 - uses: actions/checkout@v2.4.0
@ -23,5 +24,11 @@ jobs:
extra_nix_config: | extra_nix_config: |
experimental-features = nix-command flakes experimental-features = nix-command flakes
fetch-depth: 0 fetch-depth: 0
- uses: cachix/cachix-action@v10
with:
name: zellij
# If you chose API tokens for write access OR if you have a private cache
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- run: nix flake check --print-build-logs --show-trace - run: nix flake check --print-build-logs --show-trace
- run: nix build - run: nix build
- run: nix develop --profile devShell

View file

@ -67,6 +67,8 @@
pkgs.nixpkgs-fmt pkgs.nixpkgs-fmt
# optimizes wasm binaries # optimizes wasm binaries
pkgs.binaryen pkgs.binaryen
pkgs.jq
]; ];
in in